Images in the sidebar that change

I want to make it so that the sidebar shows a picture based on which character’s POV it is, and sometimes more than one if the POV changes between characters quickly (think of it like a party in an RPG). But I don’t know how to code it properly. Here’s what I try:

<<set $name to "<img src="AttachmentImages/space.png" alt="Nothing" />">>

But it just comes up with an error, probably because of all the brackets and stuff. So how do I display images in the sidebar that change?

Hi there!

You need to watch out for the quotes :wink:

Try this:

<<set $name to "<img src='AttachmentImages/space.png' alt='Nothing'>">>

Thanks, it worked!