Skip to content

Instantly share code, notes, and snippets.

@endel
Created September 24, 2020 21:16
Show Gist options
  • Save endel/bb34b264b3a82da2e7d3d265e94c8dd4 to your computer and use it in GitHub Desktop.
Save endel/bb34b264b3a82da2e7d3d265e94c8dd4 to your computer and use it in GitHub Desktop.
LUA Ternary Operator
local x = (y > 10) and "condition is true" or "condition is false"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment