<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


ELSE Search:

In Flow Control Words in TurboForth Kernal

Word Name: ELSE
Type: Immediate compiling word
Data Stack Signature: --
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Words following ELSE will be executed if the parent IF clause evaluates to FALSE.

Example:

: ODD/EVEN ( n -- ) CR 1 AND IF ." ODD" ELSE ." EVEN" THEN CR ;

Comment:

none

See Also: IF  THEN 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>