Template:and/doc

From Fire Emblem Heroes Wiki
Jump to: navigation, search
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

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.