Created
July 18, 2012 22:35
-
-
Save brntbeer/3139422 to your computer and use it in GitHub Desktop.
Lua operators
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 = | |
bar and baz and bar[baz] | |
or | |
var and var.this and var.this.that | |
or | |
nil |
ajacksified
commented
Jul 18, 2012
if(bar and baz) then
foo = bar[baz]
else if (var and var.this) then
foo = var.this.that()
else
foo = nil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment