Macro Language Help for Macro Toolworks Family Products
<if_num> : If (Compare Numbers)
This command evaluates the input expression. If the expression is evaluated as a "true" then part of the macro between <if_...> and <endif> (or <else>) is executed. If the expression is evaluated as a "false" then part of the macro between <else> and <endif> (or after <endif> if <else> is not used) is executed.
All operands in the expression are treated as numbers (unlike <if_str> that treat all operands as strings).
Expression can contain brackets () and these operators are available:
== (is equal)
!= (is not equal)
(x>y) _OR_ (x+10<y)
<#> This example shows how to use "if_num" command.
<varset>("vNum=","Insert number smaller than 10:")
<msg>(-100,-100,"No, this number is bigger than 10!","Message",1,,2)
<msg>(-100,-100,"Yes, you have passed this test!","Message",1,,0)