Vorlage:Booland4/Doku: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springen (AZ: Die Seite wurde neu angelegt: <noinclude>{{Dokumentation/Dokuseite}}</noinclude> Diese Vorlage dient der logischen Verknüpfung von '''…) |
(→Beispiele) |
||
Zeile 19: | Zeile 19: | ||
* <code><nowiki>{{#if: {{Booland4|xxx| | }}| Ja | Nein}}</nowiki></code> ergibt<br /> | * <code><nowiki>{{#if: {{Booland4|xxx| | }}| Ja | Nein}}</nowiki></code> ergibt<br /> | ||
{{#if: {{Booland4|xxx| | }}| Ja | Nein}} | {{#if: {{Booland4|xxx| | }}| Ja | Nein}} | ||
− | * <code><nowiki>{{#if: {{Booland4|xxx|xxx|xxx}}| Ja | Nein}}</nowiki></code> ergibt<br /> | + | * <code><nowiki>{{#if: {{Booland4|xxx|xxx|xxx|xxx}}| Ja | Nein}}</nowiki></code> ergibt<br /> |
− | {{#if: {{Booland4|xxx|xxx|xxx}}| Ja | Nein}} | + | {{#if: {{Booland4|xxx|xxx|xxx|xxx}}| Ja | Nein}} |
== Wahrheitstabelle == | == Wahrheitstabelle == |
Version vom 6. April 2009, 15:26 Uhr
Diese Seite ist die Dokumentations-Unterseite der Vorlage:Booland4. |
Diese Vorlage dient der logischen Verknüpfung von drei Zeichenketten (Strings).
Die Vorlage erzeugt einen nichtleeren String (gibt also „wahr“ zurück), wenn alle Parameter nicht leer (also „wahr“) sind, ansonsten einen leeren String.
Siehe dazu auch unter Hilfe:Vorlagenprogrammierung#Überprüfung von Zeichenketten
Inhaltsverzeichnis
Kopiervorlage
{{Booland4| | | | }}
Parameter
Drei Strings.
Beispiele
{{#if: {{Booland4|xxx| | }}| Ja | Nein}}
ergibt
Nein
{{#if: {{Booland4|xxx|xxx|xxx|xxx}}| Ja | Nein}}
ergibt
Ja
Wahrheitstabelle
Eingabe | Ausgabe |
---|---|
{{booland4| | | | }} | |
{{booland4| |1| | }} | |
{{booland4|1| | | }} | |
{{booland4|1|1| | }} | |
{{booland4| | |1| }} | |
{{booland4| |1|1| }} | |
{{booland4|1| |1| }} | |
{{booland4|1|1|1| }} | |
{{booland4| | | |1}} | |
{{booland4| |1| |1}} | |
{{booland4|1| | |1}} | |
{{booland4|1|1| |1}} | |
{{booland4| | |1|1}} | |
{{booland4| |1|1|1}} | |
{{booland4|1| |1|1}} | |
{{booland4|1|1|1|1}} | 1 |