<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Transient String Words in String Library
Performs a case-sensitive comparison of the topmost two strings [s1, s2] on the string stack, returning -1 if s1 < s2, 0 if s1 = s2 or +1 if s1 > s2.
$" red" $" RED" cmp$ . swap$ cmp$ . drop$ dup$ cmp$ .
None