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


WITHIN Search:

In Comparison Words in TurboForth Kernal

Word Name: WITHIN
Type: Standard word
Data Stack Signature: n low high -- true|false
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Replaces n, low, and high with TRUE if n is >= low and < high, else replaces with FALSE.

Example:

99 40 400 WITHIN . \ returns true, since 99 is within the range of 40 to 400

99 10 20 WITHIN . \ returns false

-20 -100 -1 WITHIN . \ returns true

Comment:

none

See Also: MAX  MIN 

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