Hydrowizard wrote:
> Thanks for the reply Phil, sorry I forgot to put that
the error message is
> "cannot convert the value "lower" to a boolean". The
return false part came in
> the code- I got rid of it now, I did think that it was
always necessary though
> thanks for pointing that out.
>
Have your resolved your error?
If not, or for others it is in your first if clause:
<cfif not isUpperOrLowerCase("a")>
You are not comparing the function to anything so CF is
trying to
convert the returned value 'lower' in this case to either
true or false,
i.e. a boolean value, and failing. So it is telling you that
it can not
convert 'lower' into a boolean value.
Now this would give it no problem.
<cfif not isUpperOrLowerCase("a") EQ 'lower'>
But then I am not sure what that is really testing.