Hi sam,

'exists' will check for existence of the variable.
'if_exists' will check for 'null' value.
if you want to check the value then use has_content.

I hope it will help you.

prasath
9442369696




On Mon, Jun 20, 2011 at 2:20 PM, Sam Hamilton <[email protected]> wrote:

> Hi,
>
> Can someone help me with this if statement - i can only get it to return a
> value for long_description if one exists where as I want it to return a
> description if no long_description is found?
>
>            <#assign prodDesc =
> productContentWrapper.get("LONG_DESCRIPTION")?if_exists>
>            <#if prodDesc?exists>
>                ${productContentWrapper.get("LONG_DESCRIPTION")}
>            <#else>
>                ${productContentWrapper.get("DESCRIPTION")?if_exists}
>            </#if>
>
>
> Thanks
> Sam
>
>
>

Reply via email to