deepatpaul
Programmer
For some reason, the CFIF inside this loop throws me an error when using the evaluate() function, which is wierd. I've done this a million times before; the list being passed is valid (as is the scope) and just outputting #len(evaluate("variables.#variables.ThisFieldName#"))# renders me the correct value. So, why on earth would it fail inside this IF?
<cfloop index="variables.ThisFieldName" list="#variables.CantBeBlankFieldList#">
<!--- Determine if the field has any data... --->
<cfif len(evaluate("variables.#variables.ThisFieldName#")) is 0>
<cfoutput>#variables.ThisFieldName# is invalid.<br></cfoutput>
</cfif>
</cfloop>
Template Exception - in C:\cfroot\includes\validate_input_cust.cfm : line 115
Invalid CFML construct found on line 1 at column 24
<cfloop index="variables.ThisFieldName" list="#variables.CantBeBlankFieldList#">
<!--- Determine if the field has any data... --->
<cfif len(evaluate("variables.#variables.ThisFieldName#")) is 0>
<cfoutput>#variables.ThisFieldName# is invalid.<br></cfoutput>
</cfif>
</cfloop>
Template Exception - in C:\cfroot\includes\validate_input_cust.cfm : line 115
Invalid CFML construct found on line 1 at column 24