Difference between revisions of "Less than"

From WikiManual
Jump to: navigation, search
 
(Logical Comparison Operators)
 
Line 12: Line 12:
 
Is false, as 10 is equal to 10, not less.
 
Is false, as 10 is equal to 10, not less.
  
=== Logical Comparison Operators===
+
{{Logical Comparison Operators}}
* [[=]]
 
* [[!=]]
 
* [[Greater than|>]]
 
* [[Less than|<]]
 
* [[%=]]
 
* [[!%=]]
 

Latest revision as of 15:34, 23 December 2005

Takes the two top values on the stack, and checks whether the first value is less than the second.

Examples:

10 5 < Is false

10 25 < Is true

10 10 < Is false, as 10 is equal to 10, not less.

Logical Comparison Operators:

> <
>= <=
= !=
%= !%=
~= !~=