Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2    Statistic  


Adds a value to a given variable atomically.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FM Variables 8.3 Yes Yes Yes Yes Yes
MBS( "FM.VariableAdd"; Name; Value )   More


Parameter Description Example value
Name the name of the variable "test"
Value the value to add to the variable 5


Returns new value or error.


Adds a value to a given variable atomically.
Internally does similar to FM.VariableGet to read value, then adds given parameter and stores like FM.VariableSet, all in one operation, so no other script or calculation can get between.
Creates variable, if it's not existing yet.


Sets $ID and counts up with each call:

Set Variable [ $ID ; Value: MBS( "FM.VariableAdd"; "ID"; 1 ) ]

See also

Blog Entries

Release notes

Created 8th June 2018, last changed 13th January 2020

FM.UpdateRecords3   -   FM.VariableAppend

Feedback: Report problem or ask question.

MBS FileMaker blog