Component: Variable 
--------------------

Plugin managed global variables preserving data type.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [1.2](newinversion12.md "First functions introduced with version 1.2.") / [15.2](newinversion152.md "Newest functions in version 15.2.") | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [Variable.Add](VariableAdd.md)   Adds a value to a given variable atomically. | All   8.3 |
| [Variable.Append](VariableAppend.md)   Appends text to a variable. | All   9.5 |
| [Variable.AppendJSON](VariableAppendJSON.md)   Appends a JSON to the JSON array in the variable. | All   15.2 |
| [Variable.AppendValue](VariableAppendValue.md)   Appends a value to a variable. | All   15.2 |
| [Variable.Clear](VariableClear.md)   Destroys a variable that was declared with Variable.Set. | All   1.2 |
| [Variable.ClearAll](VariableClearAll.md)   Clears all variables. | All   5.2 |
| [Variable.Exists](VariableExists.md)   Checks if a variable with that name exists. | All   4.0 |
| [Variable.Get](VariableGet.md)   Retrieves the value of named variable that was declared using Variable.Set. | All   1.2 |
| [Variable.List](VariableList.md)   Returns list of all variables names and values. | All   4.0 |
| [Variable.Lookup](VariableLookup.md)   Retrieves the value of named variable that was declared using Variable.Set. | All   12.3 |
| [Variable.Names](VariableNames.md)   Queries list of all variable names. | All   8.0 |
| [Variable.PopJSON](VariablePopJSON.md)   Queries JSON from the JSON array stored in a named variable. | All   15.2 |
| [Variable.PopValue](VariablePopValue.md)   Queries and removes the last value from variable. | All   15.2 |
| [Variable.Reset](VariableReset.md)   Resets the list of variables. | All   4.0 |
| [Variable.Set](VariableSet.md)   Stores a named variable that can be retrieved later using Variable.Get. | All   1.2 |
| [Variable.ValueCount](VariableValueCount.md)   Queries number of values in a variable. | All   15.2 |

16 functions shown.

These functions require a license (100%).

### Release notes

- **Version 15.2**
    - Added [Variable.AppendJSON](https://www.mbsplugins.eu/VariableAppendJSON.shtml) and [Variable.PopJSON](https://www.mbsplugins.eu/VariablePopJSON.shtml) functions.
    - Added [Variable.AppendValue](https://www.mbsplugins.eu/VariableAppendValue.shtml) and [Variable.PopValue](https://www.mbsplugins.eu/VariablePopValue.shtml) functions.
    - Added [Variable.ValueCount](https://www.mbsplugins.eu/VariableValueCount.shtml) function.

### FileMaker Magazin

- [Ausgabe 6/2019, Seite 33 bis 34](https://filemaker-magazin.de/neuigkeit/4064-Appetithappen-FMM_201906)
- [Ausgabe 2/2014, Seite 31 bis 32](https://filemaker-magazin.de/neuigkeit/3731-Appetithappen-FMM_201402)

[HTML Version](component_Variable.shtml)