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.

### Blog Entries

- [Variable Levels in FileMaker](https://www.mbsplugins.de/archive/2022-07-06/Variable_Levels_in_FileMaker/monkeybreadsoftware_blog_filemaker)
- [New functions of the MBS Plugin Version 9.5](https://www.mbsplugins.de/archive/2019-11-21/New_functions_of_the_MBS_Plugi/monkeybreadsoftware_blog_filemaker)
- [Combine MBS functions to automate processes in FileMaker](https://www.mbsplugins.de/archive/2019-04-11/Combine_MBS_functions_to_autom/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 8.3 released](https://www.mbsplugins.de/archive/2018-07-17/MBS_FileMaker_Plugin_83_releas/monkeybreadsoftware_blog_filemaker)
- [Data structures in FileMaker with MBS Plugins](https://www.mbsplugins.de/archive/2017-10-19/Data_structures_in_FileMaker_w/monkeybreadsoftware_blog_filemaker)
- [The power of global variables](https://www.mbsplugins.de/archive/2016-06-09/The_power_of_global_variables/monkeybreadsoftware_blog_filemaker)

### 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_Variables.shtml)