Skip to content

Instantly share code, notes, and snippets.

@joaoluiznaufel
Created March 4, 2019 07:17
Show Gist options
  • Save joaoluiznaufel/1e4530fe7528e58c04840c25c0bffb15 to your computer and use it in GitHub Desktop.
Save joaoluiznaufel/1e4530fe7528e58c04840c25c0bffb15 to your computer and use it in GitHub Desktop.
built-in control structures
var hello = "hello"
if (!hello.isEmpty)
print "is not empty"
var myHello = if (!hello.isEmpty) "is not empty" else "is empty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment