Equinox Online Help

Home

To operator

You can only use the To operator in comparative expressions. Consider the following example, where A, X and Y are all variables:

If an expression contains more than one operator, the order in which they are actioned is determined by their priorities. The smaller the priority number, the higher priority the operator takes. Operators with equal priority are actioned in the order in which they occur within the expression. eg Consider the following general expression:

number A, X, Y | variable declaration
...
if A = X To Y then alert "A is between X and Y"

Here, the If ... Then statements are used to test the value of A. This expression returns True if A is equal to X, Y, or any value between X and Y. Note that Equinox matches the data type of X and Y to that of A (if they are different)