Talk Servo V2 icon Talk Servo V2 Animate servos to simulate jaw/mouth with ARC text-to-speech; configurable vowel/consonant timing, start sync, multi-servo control, pause/stop. Try it →
 

Defineglobalvariable

Utility.defineGlobalVariable(globalVariableName, size, [defaultValue])

Parameters

globalVariableName Name of the global variable to define as a string. Must start with '$'
size Size of the array to create.
defaultValue (optional) Default value to fill the array.

Returns

Nothing

Description

Creates a global variable array with name globalVariableName and size size. If defaultValue is provided the array will be filled with defaultValue. Otherwise it will be filled with empty strings.