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


TRUE Search:

In Built-in Constants in TurboForth Kernal

Word Name: TRUE
Type: Standard word
Data Stack Signature: -- -1
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Returns -1 (>FFFF hex).

Example:

: IsEven? ( n -- )
  \ return TRUE if word is even, else return FALSE
  1 AND IF FALSE ELSE TRUE THEN
;

2 isEven? . -1 ok:0
3 isEven? . 0 ok:0

Comment:

May be used in IF statements etc.

See Also: FALSE 

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