>Is their an implementation of CFPARAM for CFSCRIPT and if so, what is the
>syntax? If not, how would I do this in CFSCRIPT if at all?


If you want to do CFPARAM style variable declarations in CFSCRIPT you need
to do a conditional test using IsDefined().  If not defined then you set the
variable with the default value OR throw an error, depending on your
situation.

For example

<CFPARAM NAME="testVar" DEFAULT="blah">

translates into

<CFSCRIPT>
    if (NOT IsDefined("testVar")) {
        testVar = "blah";
    }
</CFSCRIPT>

I personally like to use a normal CFPARAM tag for this kind of thing because
it saves on screen space.

Regards,
Seth Petry-Johnson
Argo Enterprise and Associates

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to