Template:!!=

From Zelda Dungeon Wiki
Jump to navigation Jump to search

{{{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.