It's not ok to have other ColdFusion tags inside a CFSET.  You'll have 
to put the condition outside.

<cfif findMatches.gender eq "male">
    <cfset gender = "He">
<cfelse>
    <cfset gender = "She">
</cfif>

<cfset client.KissMyDate_DisplayMessage = gender & "rest of message">

Stuart Kidd wrote:
> Hi guys,
> 
> I�m trying to put together a CFSET construct but am having probs:
> 
> <cfset client.KissMyDate_DisplayMessage = 'Unfortunately this user has
> decided not to receive anymore responses to this advert.' & <cfif
> FindMatches.gender eq 'male'>'He'<cfelse>'She'</cfif> & 'may change this in
> the near future however.'>
> 
> Could somebody please point out what I am doing wrong, is it not okay to
> have ampersands in constructs?
> 
> Thanks,
> 
> Saturday
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207637
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to