Simple Tests

From Progzoo
Revision as of 09:21, 30 December 2009 by Andr3w (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A condition is a true/false value. You can use a condition in an if statement or a while statement. For simple datatypes like numbers you can test using operators such as

==      Equal
!=      Not Equal
>       Greater than
<       Less than
>=      Greater than or Equal to
<=      Less than or Equal to

For strings you can use String methods such as