Template:and/doc

From Fire Emblem Heroes Wiki
Jump to: navigation, search

Warning: Display title "Template:and/doc" overrides earlier display title "Template:and".

Template-info.svg Documentation

Mimics Lua's and operator, for use inside {{#if:}} conditional statements.

Accepts any number of positional arguments, and trims them; if all arguments are non-empty, returns the last argument, otherwise returns the empty string.

Examples

{{and}}

{{and|a|}}

{{and||b}}

{{and|a|b}}

b

{{and|a|b|  c  }}

c

{{and|a||  c  }}

See also