[thelist] [CF] Value of a url var with no value

.jeff jeff at members.evolt.org
Mon Jul 30 13:40:12 CDT 2001


matt,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Warden, Matt
>
> Thanks Raymond. Unfortunately, I can't change the default
> value because quite a bit of code depends on that default
> value being numeric.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

if you're relying on it being numeric, then Val() it.  if it's an emptry
string, it will Val() to 0.

<cfif NOT Val(url.foo)>
  <!---
    string is empty or equal to zero.
  --->
</cfif>

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/







More information about the thelist mailing list