Hi Stephan ich würde es Warscheinlich mit einem CASE object Machen

split {
  token = |
  token.noTrimWrap = || |
  cObjNum = 1
  1 {
    10 = CASE
    10 {
    key.current = 1
    1 = TEXT
    1.vaue = Verfügbar

    2 =TEXT
    2.value = Ausgebucht

    default = TEXT
    default.value = UPS Unexpected Number
    }
  }
}

gruss chris

Am 25. Juli 2013 15:49 schrieb Stephan Grass <ha...@stephan-grass.de>:
> Hi,
>
> ich habe hier so meine Probleme:
>
> Ich lese durch Pipes getrennt Werte ein, splitte die auf und möchte je nach
> Wert eine bestimmte Ausgabe machen.
>
> z.B. Ich lese 1|2|1|5|2 ein. Jede Zahl soll eine bestimmte Textausgabe
> machen. Wie mache ich das?
>
>             split {
>               token = |
>
>               token.noTrimWrap = || |
>               cObjNum = 1
>               1 {
>
>                 current = 1
>
>                 override = verfügbar
>                 override.if {
>                   value = 1
>                   equals.current = 1
>                 }
>                 override = ausgebucht
>                 override.if {
>                   value = 2
>                   equals.current = 1
>                }
>                 …
>
>                 wrap = <td>|</td>
>
>
>               }
>
>             }
>
>
> Danke
> Stephan
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



-- 
christian wolff - webdeveloper, tech-loving geek and typo3 enthusiast
telefon: +49 30 347 244 88
mobil:  +49 179 49 44 758
email: ch...@connye.com
adresse: friedelstraße 31 - 12047 berlin

xing-profil: http://www.xing.com/profile/Christian_Wolff43
google+: https://plus.google.com/u/0/115669673917212236875/posts?hl=de
facebook: https://www.facebook.com/1stMachine
flattr: https://flattr.com/profile/1stmachine
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an