Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Variable.AppendValue

Appends a value to a variable.

Component Version macOS Windows Linux Server iOS SDK
Variable 15.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Variable.AppendValue"; Name; Value )   More

Parameters

Parameter Description Example
Name The Name of the variable "test"
Value The value to append to the list. "Hello"

Result

Returns new value or error.

Description

Appends a value to a variable.
Returns the value of the variable.
Creates variable, if it's not existing yet.

Examples

Append values:

Let ( [

r1 = MBS( "Variable.AppendValue"; "hello"; "a" );
r2 = MBS( "Variable.AppendValue"; "hello"; "b" );
r3 = MBS( "Variable.AppendValue"; "hello"; "c" )

]; MBS( "Variable.Get"; "hello" ) )

Example result:
a
b
c

See also

Release notes

Blog Entries

This function checks for a license.

Created 15th April 2025, last changed 16th April 2025


Variable.AppendJSON - Variable.Clear