<if condition="$post['profilepic']"> <img src="images/hasprofile.gif" alt="Has a profile pic" /> </if>