Boxes Tutorial

From Progzoo
Revision as of 17:26, 8 September 2008 by Andr3w (Talk | contribs)

Jump to: navigation, search
<< Strings Tutorial | Bricks Tutorial >>
Testing Two Number
You compare two numbers i and j and change colour depending on their values.
Modulus
You can use the modulus operator to test for odd/even. You can also check if numbers are divisible by numbers other than 2.
Checking Ranges
You can test a range of numbers using the greater than and less than operators.