>> <cfscript> >> for ( x=1; x<=GetB.Recordcount; x=x+1) { >> if GetB.bcode[x] NEQ xcampus { >> >> This throws an invalid construct error: >> ColdFusion was looking at the following text: >> GetB.bcode >> ? What am I missing? > > if ( GetB.bcode[x] != xcampus ) > { > // do something > }
And in an attempt to reduce future problems, it's worth pointing out that CFSCRIPT is basically JavaScript expression syntax with ColdFusion operators and functions. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357076 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm