|
Comparison |
Top Previous Next |
|
Comparison in Blox Basic is similar to other programming languages. It is recommended that expressions should be enclosed in parentheses so it is not ambiguous what is being compared with what.
= Equivalent to.
IF ( var1 = var2 ) THEN ...
!= <> Not equivalent to. Both symbols are valid.
VARIABLES: i TYPE: Integer, var1 TYPE: String
WHILE ( i != 10 ) var1 = "Message for you, sir." i = ( i + 1 ) ENDWHILE
> Greater than.
< Less than.
<= Less than or equal to.
>= Greater than or equal to. |