Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: IF Statment

  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    IF Statment

    Here's what I have:

    flash = Folder.DoesExist("C:\\flash");
    -- is the flash there?
    if flash = true then
    page.Jump("Page1");
    else
    Page.Jump("Page2");
    end


    My issue is in red. I'm missing somthing here, any one?

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    Hi Bruce, you have to use == to compare values, remember?

    = is an assigment operator
    == is a comparison operator
    === is just showing off

    Corey Milner
    Creative Director, Indigo Rose Software

  3. #3
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Oh, that's right! Opps sorry.

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746


    A tip:

    1. Create a folder named "AMS Quick Fix" in your IE favorite folder.

    2. Bookmark this thread into that folder under the title, "IF Statement Problem".

    3. Plop shortcuts to similar type future threads in there too so you have instant access to these sorts of quick fixes. A customized "Bruce's FAQ" reference if you will.

    4. Have a happy.

    Corey Milner
    Creative Director, Indigo Rose Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts