Created
April 11, 2023 22:15
-
-
Save Ismael-VC/ba3c0cd7370108e779eaf7965dc888c9 to your computer and use it in GitHub Desktop.
If statements in uxntal.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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