[skip] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Command return, with an 'if' statement used it will be TRUE (1) if condition passes or FALSE (0) if it fails, otherwise if you use a Variable it will be the value of the selected array at the selected indexes.
<Var/Array> = The required array name.
<Var/Number> = The index (element) in the required array(s).
Allows you to assign the value of a nested array element to a variable, or to create a condition or
while loop based on whether the element is set to a value or is null. A nested array is when an array element is itself an array, or in other words, one array inside another array.
Think of it like the filing system on your computer, you can have folders inside folders and you can have as many files as you want in each folder.
Example:
$array.item = $array.1 [ 2 ][ 5 ]
$array.item will be the value from $array.1 at the selected indexes, in this case, element 2 [ 2 ], sub element 5 [ 5 ].
Array exploded view,
$array.1
- - $sub.array.1
- - $sub.array.1.element.0
- $sub.array.1.element.1
- - $sub.array.2.element.0
- $sub.array.2.element.1
- $sub.array.2.element.2
- $sub.array.2.element.3
- $sub.array.2.element.4
- $sub.array.2.element.5
- $sub.array.2.element.6
- - $sub.array.3.element.0
- $sub.array.3.element.1
- $sub.array.3.element.2
- $sub.array.3.element.3
- $sub.array.3.element.4
- $sub.array.3.element.5
- - $sub.array.1.element.0
Command Location:
- »» General Commands
- »» Arrays
<RetVar/IF> = <Var/Array> [ <Var/Number> ][ <Var/Number> ]
- »» Arrays