On 3/5/01, Michael S. Kimmett penned:
>Hello,
>
>I am new to ColdFusion, so this will be an easy answer to most of 
>you.  I am having difficulty trying to determine if a variable in 
>one of my pages has a value.  What I mean by a value is did I assign 
>it a value or is it still empty.  I have tried using IsDefined, 
>Evaluate, and other CF Functions, but they all are failing the test. 
>Any ideas on how to quickly and easly determine if variable has a 
>value.
>
>Thanks in advance.

If you know the variable is set:

<cfif myvariable is not "">

if you're not sure if you even set an empty default variable:

<cfif isdefined('myvariable') and myvariable is not "">
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to