I see Petr use this in his code >< and I see him use <>
Is there a difference? I don't see >< in the comparison operators help.
Thanks.
ErosOlmi
03-12-2007, 09:09
As usual, I forgot to add into help file. I will do right now.
Anyhow >< is an unusual comparison operator and has the same meaning of INSIDE (http://www.thinbasic.com/public/products/thinBasic/help/html/inside.htm). Syntax is the following:
expression >< MinValue, MaxValue
if 5 >< 3, 4 then
msgbox 0, "between 3 and 4"
elseif 5 >< 4, 6 then
msgbox 0, "between 4 and 6"
end if
thinBasic has also BETWEEN (http://www.thinbasic.com/public/products/thinBasic/help/html/between.htm) and OUTSIDE (http://www.thinbasic.com/public/products/thinBasic/help/html/outside.htm) keywords ;)
Eros, that is cool. I would also mention those keywords in the operators help too. Those are awesome operators and keywords that is for sure!!