Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: Forum csv4you. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Mittwoch, 30. September 2015, 13:09

if abfrage irgend ein Wert

Hallo, besteht die Möglichkeit bei der indivduellen Schnittstelle eine if abfrage zu erstellen, dass wenn in einer Spalte irgend ein Wert ist, dieser mit true oder false übergeben wird?

Bis jetzt habe ich nur gefunden das man abfragen kann ob ein Wert gleich ist, oder größer als. Ich kenne es von Open Office z.B. das man mit einem "*" (sternchen) oder einem "." (punkt) nach allem suchen kann, egal welcher Buchstabe oder Zahl.

2

Mittwoch, 30. September 2015, 13:57

Erweiterte Feldfunktionen... Versuchen Sie bitte das:

Quellcode

1
{IF 'SpalteTitel' != ''}TRUE{ELSE}FALSE{ENDIF}

3

Mittwoch, 30. September 2015, 21:16

Ich habe an sowas hier gedacht, dass ist aber falsch...

Quellcode

1
{IF '[spec2|split:1]' == '[spec2|split:1]'}<li>[spec2|split:1]</li>{ELSEIF'[spec2|split:2]' == '[spec2|split:2]'}<li>[spec2|split:2]</li>{ELSEIF'[spec2|split:3]' == '[spec2|split:3]'}<li>[spec2|split:3]</li>{ELSEIF'[spec2|split:4]' == '[spec2|split:4]'}<li>[spec2|split:4]</li>{ELSEIF'[spec2|split:5]' == '[spec2|split:5]'}<li>[spec2|split:5]</li>{ELSEIF'[spec2|split:6]' == '[spec2|split:6]'}<li>[spec2|split:6]</li>{ELSEIF'[spec2|split:7]' == '[spec2|split:7]'}<li>[spec2|split:7]</li>{ELSEIF'[spec2|split:8]' == '[spec2|split:8]'}<li>[spec2|split:8]</li>{ELSEIF'[spec2|split:9]' == '[spec2|split:9]'}<li>[spec2|split:9]</li>{ELSEIF'[spec2|split:10]' == '[spec2|split:10]'}<li>[spec2|split:10]</li>{ELSEIF'[spec2|split:11]' == '[spec2|split:11]'}<li>[spec2|split:11]</li>{ELSEIF'[spec2|split:12]' == '[spec2|split:12]'}<li>[spec2|split:12]</li>{ELSEIF'[spec2|split:13]' == '[spec2|split:13]'}<li>[spec2|split:13]</li>{ELSEIF'[spec2|split:14]' == '[spec2|split:14]'}<li>[spec2|split:14]</li>{ELSEIF'[spec2|split:15]' == '[spec2|split:15]'}<li>[spec2|split:15]</li>{ELSEIF'[spec2|split:16]' == '[spec2|split:16]'}<li>[spec2|split:16]</li>{ELSEIF'[spec2|split:17]' == '[spec2|split:17]'}<li>[spec2|split:17]</li>{ELSEIF'[spec2|split:18]' == '[spec2|split:18]'}<li>[spec2|split:18]</li>{ELSEIF'[spec2|split:19]' == '[spec2|split:19]'}<li>[spec2|split:19]</li>{ELSEIF'[spec2|split:20]' == '[spec2|split:20]'}<li>[spec2|split:20]</li>{ELSEIF'[spec2|split:21]' == '[spec2|split:21]'}<li>[spec2|split:21]</li>{ELSEIF'[spec2|split:22]' == '[spec2|split:22]'}<li>[spec2|split:22]</li>{ELSEIF'[spec2|split:23]' == '[spec2|split:23]'}<li>[spec2|split:23]</li>{ELSEIF'[spec2|split:24]' == '[spec2|split:24]'}<li>[spec2|split:24]</li>{ELSEIF'[spec2|split:25]' == '[spec2|split:25]'}<li>[spec2|split:25]</li>{ELSEIF'[spec2|split:26]' == '[spec2|split:26]'}<li>[spec2|split:26]</li>{ELSEIF'[spec2|split:27]' == '[spec2|split:27]'}<li>[spec2|split:27]</li>{ELSEIF'[spec2|split:28]' == '[spec2|split:28]'}<li>[spec2|split:28]</li>{ELSEIF'[spec2|split:29]' == '[spec2|split:29]'}<li>[spec2|split:29]</li>{ELSEIF'[spec2|split:30]' == '[spec2|split:30]'}<li>[spec2|split:30]</li>{ELSEIF'


von der Logik also her, wenn [spec2|split:30] nicht wie 'nichts', dann schreibe <li>[spec2|split:30]</li>, ansonsten schreibe nichts... richtig?

4

Mittwoch, 30. September 2015, 21:45

ich habe es jetzt so gemacht, wenn ich das richtig verstehe, muss für jede IF abfrage ganz zum schluss ein ENDIF noch dazu.

Quellcode

1
{IF '[spec2|split:1]' != ''}<li>[spec2|split:1]</li>{ELSE}{IF '[spec2|split:2]' != ''}<li>[spec2|split:2]</li>{ELSE}{IF '[spec2|split:3]' != ''}<li>[spec2|split:3]</li>{ELSE}{IF '[spec2|split:4]' != ''}<li>[spec2|split:4]</li>{ELSE}{IF '[spec2|split:5]' != ''}<li>[spec2|split:5]</li>{ELSE}{IF '[spec2|split:6]' != ''}<li>[spec2|split:6]</li>{ELSE}{IF '[spec2|split:7]' != ''}<li>[spec2|split:7]</li>{ELSE}{IF '[spec2|split:8]' != ''}<li>[spec2|split:8]</li>{ELSE}{IF '[spec2|split:9]' != ''}<li>[spec2|split:9]</li>{ELSE}{IF '[spec2|split:10]' != ''}<li>[spec2|split:10]</li>{ELSE}{IF '[spec2|split:11]' != ''}<li>[spec2|split:11]</li>{ELSE}{IF '[spec2|split:12]' != ''}<li>[spec2|split:12]</li>{ELSE}{IF '[spec2|split:13]' != ''}<li>[spec2|split:13]</li>{ELSE}{IF '[spec2|split:14]' != ''}<li>[spec2|split:14]</li>{ELSE}{IF '[spec2|split:15]' != ''}<li>[spec2|split:15]</li>{ELSE}{IF '[spec2|split:16]' != ''}<li>[spec2|split:16]</li>{ELSE}{IF '[spec2|split:17]' != ''}<li>[spec2|split:17]</li>{ELSE}{IF '[spec2|split:18]' != ''}<li>[spec2|split:18]</li>{ELSE}{IF '[spec2|split:19]' != ''}<li>[spec2|split:19]</li>{ELSE}{IF '[spec2|split:20]' != ''}<li>[spec2|split:20]</li>{ELSE}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}

5

Donnerstag, 1. Oktober 2015, 08:01

Was genau wollen Sie wo suchen?
Möchten Sie einen Text nach etwas bestimmten durchsuchen?
Zum Bsp: ist in 'Der Text ist kurz' ein 'ist' drin?

Viele Grüße
db

6

Donnerstag, 1. Oktober 2015, 10:11

Nein, mir geht es dadrum, dass ich eine Spalte habe die sich attributes nennt, in dieser Spalte sind zwischen 1-20 werte drin, immer mit einem | getrennt. Für mich soll geprüft werden ob dann bei split:1 etwas drin steht, wenn ja, soll dieser Wert ausgegeben werden, jedoch immer mit einem <li> davor und </li> dahinter. Falls in split:1 nichts drin steht, soll nichts ausgegeben werden.

Da die meisten Artikel nur 3-4 Werte in attributes drin haben, müssen die anderen nicht aufgelistet werden. Ich habe es jetzt aber soweit erstmal hinbekommen, zumindest läuft die Abfrage so das sie mir im moment keine Werte ausgibt. Das liegt dadran, dass die Spalte attributes nicht importiert werden kann und deshalb noch leer ist (Ticket dazu habe ich schon erstellt). Sobald diese Spalte importiert wird, werde ich sehen ob meine Abfrage funktioniert.

Quellcode

1
[description]{IF '[spec2]' != ''}<br><h2>Details im Überblick</h2><br><p><strong>Produktdetails</strong></p><br><ul>{IF '[spec2|split:1]' != ''}<li>[spec2|split:1]</li>{ELSE}{IF '[spec2|split:2]' != ''}<li>[spec2|split:2]</li>{ELSE}{IF '[spec2|split:3]' != ''}<li>[spec2|split:3]</li>{ELSE}{IF '[spec2|split:4]' != ''}<li>[spec2|split:4]</li>{ELSE}{IF '[spec2|split:5]' != ''}<li>[spec2|split:5]</li>{ELSE}{IF '[spec2|split:6]' != ''}<li>[spec2|split:6]</li>{ELSE}{IF '[spec2|split:7]' != ''}<li>[spec2|split:7]</li>{ELSE}{IF '[spec2|split:8]' != ''}<li>[spec2|split:8]</li>{ELSE}{IF '[spec2|split:9]' != ''}<li>[spec2|split:9]</li>{ELSE}{IF '[spec2|split:10]' != ''}<li>[spec2|split:10]</li>{ELSE}{IF '[spec2|split:11]' != ''}<li>[spec2|split:11]</li>{ELSE}{IF '[spec2|split:12]' != ''}<li>[spec2|split:12]</li>{ELSE}{IF '[spec2|split:13]' != ''}<li>[spec2|split:13]</li>{ELSE}{IF '[spec2|split:14]' != ''}<li>[spec2|split:14]</li>{ELSE}{IF '[spec2|split:15]' != ''}<li>[spec2|split:15]</li>{ELSE}{IF '[spec2|split:16]' != ''}<li>[spec2|split:16]</li>{ELSE}{IF '[spec2|split:17]' != ''}<li>[spec2|split:17]</li>{ELSE}{IF '[spec2|split:18]' != ''}<li>[spec2|split:18]</li>{ELSE}{IF '[spec2|split:19]' != ''}<li>[spec2|split:19]</li>{ELSE}{IF '[spec2|split:20]' != ''}<li>[spec2|split:20]</li>{ELSE}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}{ENDIF}</ul>{ELSE}{ENDIF}{#S#}

7

Donnerstag, 1. Oktober 2015, 13:42

Wurde per Ticket geklärt.