Template:!!=

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

{{{2}}}

Purpose

This template represents an "or-equals" operator (||=). It sets the given variable to the given value only if the variable doesn't already have a value. It returns the variable's new value, which is the same as its old value if it already had one.

Usage

{{!!=| name | value }}

  • name — The name of the variable (without #var syntax).
  • value — The value to which to initialize the variable if it's empty.