Difference between revisions of "Greater than"

From WikiManual
Jump to: navigation, search
m (typo)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Takes the two top values on the stack, and checks whether the first value is greater then the second.
+
Takes the two top values on the stack, and checks whether the first value is greater than the second.
  
 
Examples:
 
Examples:
Line 12: Line 12:
 
Is false, as 10 is equal to 10, not greater.
 
Is false, as 10 is equal to 10, not greater.
  
=== Logical Comparison Operators===
+
{{Logical Comparison Operators}}
* [[=]]
 
* [[!=]]
 
* [[Greater than|>]]
 
* [[Less than|<]]
 
* [[%=]]
 
* [[!%=]]
 

Latest revision as of 19:02, 26 December 2005

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

Examples:

10 5 > Is true

10 25 > Is false

10 10 > Is false, as 10 is equal to 10, not greater.

Logical Comparison Operators:

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