Triggers/Category Logic

From SC2Mapster Wiki
Jump to: navigation, search

Comparisons[edit | edit source]

And[edit | edit source]

  • Condition: Returns true if all of the conditions listed under the "And" condition return true. By default, lists of conditions without an "And" condition or an "Or" condition must all return true in order for the condition to evaluate to true (they are treated as if they were under an "And" condition). Therefore, this condition is only necessary if it is nested within another condition such as a "Not" condition or an "Or" condition.

And Or[edit | edit source]

  • Function: Returns the result of two Boolean comparisons. If the Operator is set to And, both comparisons must be met to pass the conditions. If the Operator is set to Or, the condition will pass if either comparison is met.

And Or Multiple[edit | edit source]

  • Function: Returns the result of all of the specified Boolean comparison cases. If the Operator is set to And, all comparisons must be met to pass the conditions. If the Operator is set to Or, the condition will pass if any comparison is met.

Comparison[edit | edit source]

  • Condition: Evaluates and compares two arguments.

Not[edit | edit source]

  • Condition: Returns true if all the conditions listed under it evaluate to false. If multiple conditions are listed under the "Not" condition, those conditions will first be evaluated as if they were under an "Or" condition, and then the "Not" condition will invert the result.

Not[edit | edit source]

  • Function: Returns the inverse of the boolean value.

Or[edit | edit source]

  • Condition: Returns true if any of the conditions listed under the "Or" condition return true. By default, lists of conditions without an "And" condition or an "Or" condition must all return true in order for the condition to evaluate to true (they are treated as if they were under an "And" condition).

Text Has Been Set[edit | edit source]

  • Condition: Returns true if the Text parameter is not null.

Within Bounds[edit | edit source]

  • Condition: Returns true if the Value parameter is in between the Min and Max parameters, or if the Value parameter is equal to either the Min or the Max parameter.