Template:And/doc

From Legacy Roblox Wiki
Revision as of 21:21, 18 April 2012 by >NXTBoy (Created page with "Behaves like the lua and operator. Useful for parameters. Example: <pre>{{and|{{{1|}}}|{{{2|}}}}}</pre> * <nowiki>{{and|a|b}}</nowiki> -> {{and|a|b}} * <nowiki>{{and||b}}</n...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

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

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