Template:Or/doc

From Legacy Roblox Wiki
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.