Please use #EVAL[ ] block. Inside that block place JavaScript expression which will be calculated on server side and substituted into your template.
thanks [mention:05b5f00eae4a468d844fa8bedcafd110:e9ed411860ed4f2ba0265705b8793d05] ,
i am not aware of how to use it,can you pls give one example.
Assuming you have boolean field {!alert} in your record, try this:
#EVAL[ {!alert} ? "<span color='red'>" : "" ] some text #EVAL[ {!alert} ? "</span>" : "" ]
thanks,working fine