CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread asherwood
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:215594
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=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread Neculai Macarie
 My mind is failing me.

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

function cf_param(name, value)
{
 if(not isDefined(name))
  SetVariable(name, value);
}

-- 
mack /


~|
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:215599
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


RE: CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread Calvin Ward
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:215604
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


RE: CFSCRIPT Equivalent of CFPARAM?

2005-08-18 Thread S . Isaac Dealey
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