Mal:Both

Fra Wikipedia, den frie encyklopedi
Maldokumentasjon


Bruk[rediger kilde]

{{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[rediger kilde]

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