I have the following html script that adds a black bar and two logo's to my Maxdiff exercise.
<div id="header">
<div id="subheader">
<table width="100%" cellspacing="0" cellpadding="0"><tbody><tr><td style="text-align: left;"><img src="[%GraphicsPath()%]isay.png" alt="" border="0" style="vertical-align: middle; margin-left: 10px;"></td><td style="text-align: right;"><img src="[%GraphicsPath()%]ipsos.png" alt="" border="0" style="vertical-align: middle; margin-right: 10px;"></td></tr></tbody></table></div>
</div>
However, I would like to include it into a Perl script, so I can make it dependent on some variable.
[% Begin Unverified Perl
if(GETVALUE("SAMPLE") ==1){ return The html script above;}
if(GETVALUE("SAMPLE") ==2){ return Another html script;}
if(GETVALUE("SAMPLE") ==3){ return Another html script;} End Unverified %]
How should i do this?
I tried what was suggested here, but that did not seem to do the trick.
https://legacy.sawtoothsoftware.com/forum/19993/unverified-perl-%26-html-code