Guten Tag,
in einer Vorlage habe ich so etwas drin:
<img src="%imagesurl_2%" style="width:100%;margin-top: 10px; margin-bottom:25px;" alt="Angebote & Informationen">
Ich möchte allerdings, wenn das Bild (bzw. die URL) in %imagesurl_2% nicht existiert, keine Fehlermeldung bekommen.
Die Zeile soll also nur ausgegeben werden, wenn auch eine URL zum Bild vorhanden ist.
Also von der Logik her:
IF %imagesurl_2% ist nicht leer THEN
<img src="%imagesurl_2%" style="width:100%;margin-top: 10px; margin-bottom:25px;" alt="Angebote & Informationen">
ELSE
nicht ausgeben
Wie baue ich das ein?
Danke & LG, Frank