Skip to content

Instantly share code, notes, and snippets.

@endel
Created September 24, 2020 21:16
Show Gist options
  • Select an option

  • Save endel/bb34b264b3a82da2e7d3d265e94c8dd4 to your computer and use it in GitHub Desktop.

Select an option

Save endel/bb34b264b3a82da2e7d3d265e94c8dd4 to your computer and use it in GitHub Desktop.

Revisions

  1. endel created this gist Sep 24, 2020.
    1 change: 1 addition & 0 deletions lua-ternary-operator.lua
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    local x = (y > 10) and "condition is true" or "condition is false"