The condition_if action performs a conditional test on group variables. It requires one sub-action. If the condition is met, then the sub-action is executed.
The condition expression must follow the pattern:
<local_variable> <operator> <local_variable|foreign_variable|constant_value>
where operator
can be one of <
, >
, =
, !=
, <=
, >=
.
Each group has a set of four variables with IDs 0 to 3. Local variables are the variables of the current group and are expressed with a v
followed by the variable ID (0-3), for example, v0
.
Foreign variables are variables that come from another group. They are expressed with the group name followed by a colon :
and then followed by a local variable identifier (v
), for example, group_1:v2
. Note that foreign variables are accessible only if the group name is unique in the manager or the world.
Constant values are floating-point numerical expressions in base 10.
condition_if
.condition_if
.