Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2006
    Posts
    21

    issue with if then statements

    ok, what am I doing wrong?

    if Flat = True then
    result = File.Run("c:\\drivers\\iPass35\\iPass321_flat\\set up.exe", "-s -f1c:\\drivers\\iPass35\\iPass321_flat\\setup.iss", "", SW_SHOWNORMAL, false);
    end

    when I run that, it says Line=5: 'then' expected near '='

    what am I doing wrong? HELP!

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Use "==" for equality testing. Also, check for "true", not "True":

    Code:
    if Flat == true then
    result = File.Run("c:\\drivers\\iPass35\\iPass321_flat\\set up.exe", "-s -f1c:\\drivers\\iPass35\\iPass321_flat\\setup.iss", "", SW_SHOWNORMAL, false);
    end

  3. #3
    Join Date
    Jan 2006
    Posts
    21
    thanks I got this a few min's after posting this, just forgot to reply :-)

Similar Threads

  1. Bug or Script issue?
    By Cummins in forum AutoPlay Media Studio 6.0
    Replies: 5
    Last Post: 07-18-2006, 07:33 AM
  2. Multiple IF statements
    By Gabis in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 12-31-2005, 09:24 PM
  3. Small problem with if statements
    By Sooty in forum Setup Factory 6.0
    Replies: 1
    Last Post: 03-18-2005, 08:47 AM
  4. Who can help I solve my confuse for this issue?
    By pierre in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 04-15-2004, 01:36 AM

Posting Permissions

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