Hey,
In ,my CBC I want to show two different pictures, a picture of a shirt for females if the variable gender==1 is answered in the survey before, or a image from a shirt typically for men when gender ==2. I tried it with a perl code, but it does not work. Where is my mistake?
[% Begin Unverified Perl
if (GETVALUE("Gender") ==1) { return '<img src="' . GraphicsPath(). 'Bild_Shirt_Damen.jpg" alt="" border="0"> <center>9,99€</center>';}
if (GETVALUE("Gender") ==2) { return '<img src="' . GraphicsPath(). 'Bild_Shirt_Herren.jpg" alt="" border="0"> <center>9,99€</center>';}
End Unverified
%]
Thanks!