Hi Andrew,

   you need parenthesis around the entire if clause, like this:

If ((not StructKeyExists(application,'Loader') and IsObject(application.
Loader)) and Debug eq False) {
        do my code...
}

Toby

Tuesday, October 28, 2003, 4:52:33 PM, you wrote:

AS> Evening People,

AS> This maybe easy but I think I am missing something with the logic of a
AS> cfscript piece of code.

AS> In CFML it looks like this and works:

AS> <cfif not (StructKeyExists(application,'Loader') and
AS> IsObject(application. Loader) and Debug eq False)>

AS> But when I translate this to CFScript:

AS> If (not StructKeyExists(application,'Loader') and IsObject(application.
AS> Loader) and Debug eq False)

AS> I have tried what I think is every combo, but I know I am missing that
AS> one that does work.

AS> Anyone have any ideas.

AS> Regards,
AS> Andrew Scott




AS> ---
AS> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
AS> To unsubscribe send a blank email to [EMAIL PROTECTED]

AS> MX Downunder AsiaPac DevCon - http://mxdu.com/




--------------------------------

       Life is Poetry,
           write it in your own words

--------------------------------

Toby Tremayne
Cold Fusion Developer
Code Poet and Zen Master of the Heavy Sleep
Virtual Tours
+61 416 048 090
ICQ: 13107913


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to