Action If Variable

From ENIGMA
Jump to navigation Jump to search

Description

Action if variable.png

If Variable

Evaluates the expression using the given parameters then, depending on what the outcome was, executing the following block of code.

Parameters

Parameter Description
Applies To which object is to perform the action (eg. self, other, etc)
Variable the name of the variable to use as left operand of expression
Value value to use as right operand of expression
Operation the operator to use in the expression (eg. equal to, less than, greater than)
Not whether to check if false, or otherwise true

Function Equivalent

action_if_variable(inline bool action_if_variable(const variant& variable, const variant& value, int operation)
returns: (boolean)