|
![]() |
||||||||||||||
Primitive Data Types TutorialComparison OperatorsComparison operators are defined for Integer, Float and String types. The equality of two values is tested using = or ==. To test if two values are different one can use either != or <>. Usual relational operators are supported: <, >, <= and >=. Source code:{# 1 < 2, 1.2 <= 2.3, "abcd" > "ABCD", "abcd" >= "AB", 21 * 2 = 42, 21 == 42 / 2, 17 != 18, -3.14 <> 3.14 #} Result:{# true, true, true, true, true, true, true, true #}
|
|
||||||||||||||
© 2006 Saša Malkov | |||||||||||||||