On 6/4/06, Richard Colman <[EMAIL PROTECTED]> wrote:
> Anyone know the proper syntax for checking whether a list member exists,
> like:
>
> <cfif isdefined("listgetat(message,6, ' ')")>
>
Assuming that you are looking for there to just be a value other than
an empty string in a particular list position and you know the number
of list elements, you could just change that to:
<cfif len(listgetat(message,6, " "))>

If the number of list elements is variable, you could use...

<cfif len(getToken(message,6," "))>
....
</cfif>
If there are less elements in the list than the position you are
looking for, the getToken function will return an empty string rather
than an error.

-- 
Jim Wright
Wright Business Solutions
[EMAIL PROTECTED]
919-417-2257

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242366
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to