I tend to use arithmetric expressions without the = sign. At first I thought when I write
Code: Select all
a * some_expressionCode: Select all
a=a*(some_expression)It is more like
Code: Select all
a=a*some_expressionThe behaviour is better described as:
An expression without equal sign is evaluated in the normal order and the result is stored in the leftmost variable.
Here is some example code:
Code: Select all
a=7:b=2:c=3
a+b*c
Debug "a="+Str(a)+" b="+Str(b)+" c="+Str(c)
a=7:b=2:c=3
a*b+c
Debug "a="+Str(a)+" b="+Str(b)+" c="+Str(c)
a=7:b=2:c=3
a|b&c
Debug "a="+Str(a)+" b="+Str(b)+" c="+Str(c)
a=7:b=2:c=3
a|(b&c)
Debug "a="+Str(a)+" b="+Str(b)+" c="+Str(c)Saves you some braces!
--manu


