| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Variable.Exists
Checks if a variable with that name exists.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Variable | 4.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Variable.Exists"; Name ) More
(old name: FM.VariableExists)
Parameters
| Parameter | Description | Example |
|---|---|---|
| Name | The name of the variable. | "x" |
Result
Returns 1 if variable exists, else 0.
Description
Checks if a variable with that name exists.Examples
Check function:
Let ( [
c1 = MBS( "Variable.Exists"; "testing" );
c2 = MBS( "Variable.Set"; "testing"; "Hello" );
c3 = MBS( "Variable.Exists"; "testing" )
]; c1 & c3 )
Example result: 01
c1 = MBS( "Variable.Exists"; "testing" );
c2 = MBS( "Variable.Set"; "testing"; "Hello" );
c3 = MBS( "Variable.Exists"; "testing" )
]; c1 & c3 )
Example result: 01
See also
Example Databases
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 15th April 2025