There isn't really a free-form if{} syntax that you can use, at least up to v5.5. But there ARE some Transformation Functions that can be used to do what I think you need to do:
IfEmpty(object value, object emptyResult, object nonEmptyResult)
<%# IfEmpty(Eval("ProductPhoto"), "no image", GetImage("ProductPhoto")) %>
• Checks for emptiness of the value specified in the first parameter. If it is NULL, the second parameter is returned. If it has some value, the third parameter is returned.
Example:
<%# IfEmpty(Eval("ArticleImage"), "", "<img src=\"/images/art.jpg\" alt=\""+ Eval("ArticleImageText") +"\" />") %>
Here's some docs for it:
http://devnet.kentico.com/docs/5_5R2/devguide/index.htmlAnd on your site go to: http://{your site domain}/CMSHelp/index.html?newedit_transformation_methods.htm