Skip to main content

setVariable()

Last updated 31/01/2024

The setVariable() is a function on the Five object that sets the value of a global variable. It sets the value of a named global variable with a new value on the variable property on the Five object.

Available
Client and Server


Function Signature
setVariable(name: string, value: any) : void;

ParameterTypeDescription
namestringName of the variable.
valueanyValue of the variable.

Examples

setVariable()