Oops, fat fingered it...
that should say:
#listlen(form.foo)# = 2 if form.foo = 'a, b'
:) DG
Then it treats the variable as a string, not a list
#listlen(form.foo)# = 0 even though form.foo = 'a'
#listlen(form.foo)# = 1 if form.foo='a, b'
On Monday 06 November 2006 15:11, T Burke wrote:
form.foo neq '' and listlen(form.foo) eq 0 ?.
cfif form.foo contains ','
--
Tom Chiverton
Helping to elementarily improve total methodologies
This email is sent for and on behalf of
This will always return a value of one based off the default delimiter of , .
cfset foo = a
cfoutput#listlen(foo)#/cfoutput
You may want to check to see what is being sent in your form.
On 11/6/06, T Burke [EMAIL PROTECTED] wrote:
I have a cfc that traverses a list of items that comes from a
ARRRGGGHH I would like to have my cfloop manage the
variable regardless of how many items (more than zero) are
in the list. Is there a way an elegant method of
checking the contents if my list besides if form.foo neq ''
and listlen(form.foo) eq 0 ?.
IsList() is a function long
4 matches
Mail list logo