Re: Dynamic variable Name in cfif

2014-07-18 Thread Dave Watts
I'm having no trouble setting and outputting a dynamic variable name: cfoutputExpires_#UpdateMe#= #form[ 'Expires_' UpdateMe]#/cfoutput but when I go to evaluate that variable: cfif form[ 'Expires_' UpdateMe ] EQ Yes it returns: Variable YES is undefined because the VALUE of the

Re: Dynamic variable Name in cfif

2014-07-18 Thread Phillip Vector
Also, shouldn't it be cfif form[ 'Expires_' UpdateMe ] is 'Yes' ??? or is it the current trend to use EQ when checking a text field nowadays? :) On Fri, Jul 18, 2014 at 6:22 AM, Dave Watts dwa...@figleaf.com wrote: I'm having no trouble setting and outputting a dynamic variable name:

Re: Dynamic variable Name in cfif

2014-07-18 Thread Dave Watts
Also, shouldn't it be cfif form[ 'Expires_' UpdateMe ] is 'Yes' ??? or is it the current trend to use EQ when checking a text field nowadays? :) They're equivalent, so it doesn't matter which one you use. It's purely a matter of personal preference. Dave Watts, CTO, Fig Leaf Software