Skip to content

Instantly share code, notes, and snippets.

@Ismael-VC
Created April 11, 2023 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ismael-VC/ba3c0cd7370108e779eaf7965dc888c9 to your computer and use it in GitHub Desktop.
Save Ismael-VC/ba3c0cd7370108e779eaf7965dc888c9 to your computer and use it in GitHub Desktop.
If statements in uxntal.
@foo ( a b -- bool )
( if ) [ ( a b ) EQU ] ?&then
( else )
#00 ( return false )
!&end
&then
#01 ( return true )
&end
( endif )
RTN
@foo ( a b -- bool )
( if ) [ ( a b ) NEQ ] ?&else
( then )
#01 ( return true )
!&end
&else
#00 ( return false )
&end
( endif )
RTN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment