Mal:Both/dok
< Mal:Both
Dette er en underside med dokumentasjon for Mal:Both (se denne siden for selve malen). Den inneholder brukerinformasjon, kategorier og annet som ikke er del av den originale malsiden.
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 |