A condition that compares two script values with the
operator in Operation. The condition evaluates Value1 and Value2 each time it is
tested.
Two values of the same kind compare directly. An Int and a Float compare as numbers. Any
other pair of different kinds is incompatible:
- If one of the two values is Nil,
Equal returns false and NotEqual returns true.
- Any other incompatible pair records a script error and returns false.
If Value1 or Value2 is unset or produces no value, the condition returns false for
every Operation, including NotEqual. A ScriptTableGet for a
missing variable produces no value, so a comparison cannot test whether a variable exists.
TableValueExistsScriptCondition and
IsNilCondition test that.