With vector variables and VDN variables, goto test comparisons against or containing the keywords none or # are allowed with all comparators including <, >, <=, or >=. These keywords can be compared against digit strings. When Communication Manager tests these comparisons, the keywords and digits have weighted values ordered as follows:
none < # < 0 < 1 to 9 < 00…
All comparisons are basically string comparisons, not numeric comparisons. A string comparison of 0 is less than 00, and not equal as in a numeric comparison.
You can do less than or greater than comparisons with variables that can have a value of none (empty string) or # (invalid result or a single # digit was collected) using the ordering rules above. For example:
goto step 5 if digits = A
goto step 5 if digits <> A
goto step 5 if digits < A
goto step 5 if digits > A
goto step 5 if digits <= A
goto step 5 if digits => A
Using these properties, you can determine if a caller has entered a digit between 1 to 9 as follows:
1. collect 1 digit after hearing announcement x for A
2. goto step 1 if A <= 0 [will branch to step 1 if A has a value of none, # or 0]
3. [this step reached if A contains a digit between 1 to 9]