You can write this as a function also...

function param(v,d) {
        if (not isdefined(v)) { setVariable(v,d); }
}

> Yeps!

> if (NOT (IsDefined("myvar")) {
>  myvar = 'myval';
> }

> - Calvin

> -----Original Message-----
> From: [EMAIL PROTECTED] [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 18, 2005 10:05 AM
> To: CF-Talk
> Subject: CFSCRIPT Equivalent of CFPARAM?

> My mind is failing me.

> Is there a CFSCRIPT alternative to CFPARAM other than an
> IsDefined() block?

> Thanks!



> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:215620
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