NO, it's not ok to have nested tags inside a cfset tag, or any other tag for
that matter.
<cfset client.KissMyDate_DisplayMessage = 'Unfortunately this user has decided
not to receive anymore responses to this advert.' & #iif( FindMatches.gender eq
'male',DE('He'),DE('She'))# & 'may change this in the near future however.'>
You could use the IIF function here, but I'm sure there are better ways to do
this all around.
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
....-----Original Message-----
....From: Stuart Kidd [mailto:[EMAIL PROTECTED]
....Sent: Wednesday, May 25, 2005 7:03 AM
....To: CF-Talk
....Subject: CFSET construct
....
....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
....
....
....
....
....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207636
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