Mal:Both/dok: Forskjell mellom sideversjoner

Fra Wikisida.no
Hopp til navigering Hopp til søk
m (robot Legger til: gl:Modelo:Both)
(Ingen forskjell)

Sideversjonen fra 4. mar. 2013 kl. 17:28

Bruk

{{both|string1|string2}}

Produces 1 (equivalent to a true condition) if both string1 and string2 are non-empty; otherwise produces the empty string (false condition).

Eksempler

Kode Resultat
{{#if:{{both|A|A}}|Ja|Nei}}: Ja
{{#if:{{both||A}}|Ja|Nei}}: Nei
{{#if:{{both|A|}}|Ja|Nei}}: Nei
{{#if:{{both||}}|Ja|Nei}}: Nei