Template:or

From Fire Emblem Heroes Wiki
Jump to: navigation, search
Template-info.svg Documentation

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

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

Examples[edit source]

{{or}}

{{or|a|}}

a

{{or||b}}

b

{{or|a|b}}

a

{{or|  a  |  b  |c}}

a

{{or|  |  b  |c}}

b

See also[edit source]