User Tools

Site Tools


4rpl:commands:eq

This is an old revision of the document!


Index

eq

eq

Description

Top two items are popped from the stack and compared for equality. 0 or 1 is pushed back to the stack where 1 indicates equal and 0 (zero) ndicates not equal

the equal/not equal evaluation can also be performed with “true” (1) and false(0), respectively.

Examples

if (1 eq (1))
    trace("1 is equal to 1")
endif
 
#  alternate example
 
1 dup eq
if true
  trace ("one is always one")
endif

Index

4rpl/commands/eq.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)