> Hello list..Another, hopefully, quick question. > > Is there a problem with putting a cfif tag within a cflock? > Here is an example: > > <cflock timeout="45" throwontimeout="No" name="look_pick" > type="READONLY"> > <cfif session.picks is "Yes"> > </cflock> > > Do insert > > <CFELSE> > <CFLOCATION somewhere> > </CFIF> > > Would this cause any problems?
Tag balancing - an open part of a tag MUST be on the same level as the close part of the tag, so you can't have a </CFLOCK> inside a <CFIF> if the <CFLOCK> is before it Try <cflock timeout="45" throwontimeout="No" name="look_pick" type="READONLY"> <cfset myPicks=session.picks> </cflock> <cfif session.picks is "Yes"> Do insert <CFELSE> <CFLOCATION somewhere> </CFIF> Philip Arnold Technical Director Certified ColdFusion Developer ASP Multimedia Limited Switchboard: +44 (0)20 8680 8099 Fax: +44 (0)20 8686 7911 www.aspmedia.co.uk www.aspevents.net An ISO9001 registered company. ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

