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
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:
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
3 matches
Mail list logo