Mi 14 Nov, 2012 06:58
und habe hier ein Pendant gefunden: Die [If]-Abfrage.if... then... else - Abfrage
<if name="Geld" equals="max=10" then=<include target="kampf"/>
<include target="handel"/>
Fehler in Zeile 5, Spalte 40:Öffnendes Anführungszeichen wird für Attribut "{1}" erwartet, das mit Elementtyp "then" verknüpft ist.
Mi 14 Nov, 2012 09:22
<if attribute="gender" equals="male" then="text mann" else="text frau"/>
<switch attribute="cash">
<case max="10">
<include target="kampf"/>
</case>
<else>
<include target="handel"/>
</else>
</switch>
<has attribute="cash" max="10">
<success>
<include target="kampf"/>
</success>
<failure>
<include target="handel"/>
</failure>
</has>
Mi 14 Nov, 2012 10:07