<>

Stack effect: ( a b -- f )

1 if the top two stack elements are not equal, else 0.

Boolean values in Haiku Forth are returned as 1 (true) or 0 (false). This is in contrast to traditional Forth in which -1 is used for true. This choice to go 1 for true was made to facilitate using boolean value as multiplicative masks. For example: x 0.5 < * . The Forth/C convention that anything non-zero is considered an alternate stand-in for true is carried over.

NOTE: In Haiku Forth (unlike Traditional Forth), all stack cells and memory locations are floating point numbers.

Examples:

Forth Haiku Glossary