panel container

I have a panel container that has different types of media showing at one time…. I want to set the layout so the image will show only when listitem.dbtype matches that format…. I tried passing it to a string and using string is equal… But if not working .. for visible control… Any ideas…. Container.content doesnt work either I am guessing because it is a media container nothing specific.

And help would be appreciated.