Skip to main content

setVariable()

Last updated 12/09/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 in the format of
five.variable.<variableName>
.

Available

Client and Server

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

ParameterTypeDescription
name
stringName of the variable
value
anyValue of the variable

Examples

setVariable()