Skip to Main Content

show image in static text based on presentation variable

dhaesejanSep 13 2022

Hi,

We are on OAS and I'm trying to show an image in a static text within a report, based on a presentation variable.
My presentation variable can be Jim or Kim (or null).
So what I want is this:
case
when '@{presvar}' = 'Jim'
then <img src="/analyticsRes/customImages/exampleJim.jpg"
when '@{presvar}' = 'Kim'
then <img src="/analyticsRes/customImages/exampleKim.jpg"
end

How can I write this in html?
Thanks for the help!

Comments