Předłoha:Booland
Napohlad
Tuta předłoha słuži logischen Verknüpfung zweier Zeichenketten (Strings).
| Tutón přinošk ma so hišće přełožić. |
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
{{Booland| | }}
Parameter
Zwei Strings.
Beispiele
{{#if: {{Booland|| }}| haj| ně}}přinjese
ně
{{#if: {{Booland|xxx| }}| haj| ně}}přinjese
ně
{{#if: {{Booland| |xxx}}| haj| ně}}přinjese
ně
{{#if: {{Booland|xxx|xxx}}| haj| ně}}přinjese
haj
Wahrheitstabelle
| Eingabe | Ausgabe |
|---|---|
| {{booland| | }} | |
| {{booland| |1}} | |
| {{booland|1| }} | |
| {{booland|1|1}} | 1 |
| Jeli maš prašenje k tutej předłoze, da so móžeš na stronje Wikipedija diskusija:Projekt za předłohi prašeć. |
|