Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Retrieves the value of named variable that was declared using FM.VariableSet.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
FM Variables | 12.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
Name | The Name of the variable | ||
DefaultValue | The default value to return if variable doesn't exist. | Optional |
Returns OK or error.
Try it:
"Set: " & MBS("FM.VariableSet"; "test"; "test") & ¶ &
"Lookup test: " & MBS("FM.VariableLookup"; "test"; "not found?") & ¶ &
"Lookup test2: " & MBS("FM.VariableLookup"; "test2"; "not found?")
Example result:
Set: OK
Lookup test: test
Lookup test2: not found?
This function checks for a license.
Created 2nd June 2022, last changed 31st January 2023