SC2Mapster Wiki
Advertisement

Comparison[]

A logical operator used in conditional statements. It will evaluate the values one each side of the operator, and compare them with one of the comparator operators (Equals, Not Equals, Less Than, Greater Than, Less or Equal Than, Greater or Equal Than.

GUI[]

Logic - val1 op val2

Galaxy Code[]

bool Comparison ( anycompare val1, preset op, sameas val2 )

Description[]

Evaluates and compares two arguments.

Parameters[]

  • anycompare val1
    • Name: Value 1
  • preset op
  • Preset: Any Comparison Operator
  • Name: Operator
  • sameas val2
    • Name: Value 2
    • TypeElement: ABB380C4

Return Type: bool[]