Danke Bernd, das war ein super Hinweis! Damit hat's funktioniert! Johannes.
> -----Ursprüngliche Nachricht----- > Von: typo3-german-boun...@lists.typo3.org [mailto:typo3-german- > boun...@lists.typo3.org] Im Auftrag von Bernd Pier > Gesendet: Donnerstag, 2. März 2017 19:18 > An: typo3-german@lists.typo3.org > Betreff: Re: [TYPO3-german] Fluid Template: IF-Problem mit Extbase mixed > Variable > > Am 02.03.17 um 17:55 schrieb Johannes C. Laxander: > > Hallo, > > > > in meinem Fluid Template habe ich dieses If-Construct: > > > > <f:if condition="{job.distance} == 0"> > > <f:then> > > > > </f:then> > > <f:else> > > {job.distance} > > </f:else> > > </f:if> > > > > Der Extbase Varible Dump (f:debug) zeigt mir für {job.distance} 0 > > (integer) und z.B. '0,00 km' (7 chars) oder '6,30 km' (7 chars). > > > > Bei 0 (integer) wird ausgegeben und bei '6,30 km' wird dieser > > Wert ausgegeben. Soweit ist alles gut und verständlich. Ist der Inhalt > > lt. Dump aber '0,00 km' wird ebenfalls ausgegeben. Und das > > verstehe ich überhaupt nicht? > > > > Wer kann mich hier bitte mal "aufklären"? > > > > Johannes. > > > Hi Johannes, > > wird ein String Vergleich nicht so gemacht: > <f:if condition="'{job.distance}' == '0'"> > > könnt mir vorstellen, das f:if in deinem Beispiel halt nur ein Interger Vergleich > macht. > > Grüssle > > Bernd > _______________________________________________ > TYPO3-german mailing list > TYPO3-german@lists.typo3.org > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german