rewrite it:
<cfset showForm = false>
<cfloop index="x" from="1" to="5">
<cfif Evaluate('photo_file_#x#_error') neq 0
AND Evaluate('photo_caption_#x#_error') neq 0>
<cfset showForm = true>
<cfbreak>
</cfif>
</cfloop>
// assume they are the same "0" and it only takes
// one to throw the logic out
Jason King wrote:
If you have the time, this is one of the last things I have to figure
out.. Right now, something like below is hard coded with a specific
number of instances, in this case 5. The original was actually 20, but i
cut it short. Basically, it is checking to see if any errors were
flagged, and if none are, it sets the variable which will tell the
script to process the submitted info. Can you loop within a CFIF Tag?
This one has me puzzled.
<CFIF
(photo_file_1_error EQ 0)
AND
--
Open BlueDragon Public Mailing List
http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon
mailing list - http://groups.google.com/group/openbd?hl=en
!! save a network - please trim replies before posting !!