Skip to content

Instantly share code, notes, and snippets.

@paniq
Last active December 18, 2018 03: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 paniq/3599fcdfc32bf1fd97502816706e30bb to your computer and use it in GitHub Desktop.
Save paniq/3599fcdfc32bf1fd97502816706e30bb to your computer and use it in GitHub Desktop.
# experimenting with making a section conditional without using indentation
fn test1 ()
print "hello"
print "world"
print "what's up"
print "?"
fn test2 ()
print "hello"
if true
print "world"
print "what's up"
print "?"
fn test3 ()
print "hello"
(if true
\ do
print "world"
print "what's up"
)
print "?"
fn test4 ()
print "hello"
(do
\ if true
print "world"
print "what's up"
)
print "?"
test1;
test2;
test3;
test4;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment