Tuta předłoha słuži logischen Verknüpfung zweier Zeichenketten (Strings).

Die Vorlage erzeugt einen nichtleeren String (gibt also „wahr“ zurück), wenn beide Parameter nicht leer (also „wahr“) sind, ansonsten einen leeren String.

Siehe dazu auch unter de:Hilfe:Vorlagenprogrammierung#Überprüfung von Zeichenketten

Kopiervorlage wobdźěłać

{{Booland| | }}

Parameter wobdźěłać

Zwei Strings.

Beispiele wobdźěłać

  • {{#if: {{Booland|| }}| haj| ně}} přinjese

  • {{#if: {{Booland|xxx| }}| haj| ně}} přinjese

  • {{#if: {{Booland| |xxx}}| haj| ně}} přinjese

  • {{#if: {{Booland|xxx|xxx}}| haj| ně}} přinjese

haj

Wahrheitstabelle wobdźěłać

Eingabe Ausgabe
{{booland| | }}
{{booland| |1}}
{{booland|1| }}
{{booland|1|1}} 1
Z Wikipedije, swobodneje encyklopedije