Zum Inhalt springen

Problem mit Bedingung

Erstellt am 28. November 2007 · 3 Antworten · letzte Antwort am 28. November 2007

Tags: Frage

Gerfried ·

Ich stehe wieder einmal auf der Leitung. Bei folgenden Bedingungen wird stets "Bananen" angezeigt, unabhängig vom aktiven Navigationszweig.

plugin.tx_thmailformplus_pi1.fieldConf {
   subjectfld {
   	    defaultValue.value = 
        [PIDinRootline = 120]
            defaultValue.value = Äpfel
        [PIDinRootline = 172]
            defaultValue.value = Birnen
        [PIDinRootline = 203]
            defaultValue.value = Bananen
        [end]
   }
}

Das Script ist Teil einer Mailformplus Anweisung - aber ich damit kann's ja eigentlich nichts zu tun haben.

Danke und lg,
Gerfried

Wool ·
[PIDinRootline = X]
 plugin.tx_thmailformplus_pi1.fieldConf.subjectfld.defaultValue.value = Wert1
[PIDinRootline = Y]
 plugin.tx_thmailformplus_pi1.fieldConf.subjectfld.defaultValue.value = Wert2
[else]
 plugin.tx_thmailformplus_pi1.fieldConf.subjectfld.defaultValue.value = default
[global]

plugin.tx_thmailformplus_pi1.fieldConf {
 weitere Einstellungen und Änderungen...
}

EDIT:
... mist zu langsam...