Operator

From AgeofWiki

An operator performs an action on one or two numbers.

Comparing operators

A comparing operator can have five different values, and combines with another number in the condition or effect to attach meaning to the result. In general terms, they compare two values. The operators are:

  • >, which means Greater Than.
  • >=, which means Greater Than or Equal To.
  • ==, which means Equal To.
  • <=, which means Less Than or Equal To.
  • <, which means Less Than.

To understand how these operators work, think of them as attaching to the number they are changing. For example, in a Distance to point condition, the operator could be >. In this condition, the operator works on the Distance number. If you had a Distance of 6, the actual distance would be written as "The Distance Must be Greater Than Six", or "All Distances Greater Than Six". This lets you specify a range of numbers instead of just one.

Other operators

Quest Var trigger members use another kind of operators; these operators do not compare two values, but create a new value out of two other values. You should remember these operators from primary school. The operators are:

  • +, which means Add.
  • -, which means Substract.
  • *, which means Multiply By.
  • /, which means Divide By.

For example, the effect Quest var modify modifies the value of a Quest Var using these operators. You could divide the value of the Quest Var by 3 by choosing / and 3.