Template:Or/doc

From Legacy Roblox Wiki
Revision as of 17:18, 18 April 2012 by >NXTBoy
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Behaves like the or lua operator. Useful for parameters. Example:

{{or|{{{1|}}}|{{{2|}}}}}
  • {{or|a|b}} -> a
  • {{or||b}} -> b
  • {{or|a|}} -> a
  • {{or||}} ->

Will take 1 if it is non-blank, else it will take 2.