Announcement

Collapse
No announcement yet.

IF conditions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • IF conditions

    I'm wrestling with an IF condition. I am trying to test which of three serials a user enters, then use the result to set one of three package variables true so only that package will install. The Build screen keeps insisting there is a missing operator before position 3 in line 1. What am I doing wrong?
    The code looks like this:

    IF(%UserSerialNumber% = 12345)
    Assign Value (%CCPackageVariable% = true)
    END IF
    IF(%UserSerialNumber% = 67890)
    Assign Value (%SEPackageVariable% = true)
    END IF
    IF(%UserSerialNumber% = 54321)
    Assign Value (%A1PackageVariable% = true)
    END IF

    All help _very_ gratefully received ... this is driving me nuts!

  • #2
    Re: IF conditions

    I don't see anything wrong with that. Maybe it isn't exactly what you wrote? Either that, or the error is occurring somewhere else?
    --[[ Indigo Rose Software Developer ]]

    Comment


    • #3
      Re: IF conditions

      I can't see what's wrong with it, either [img]/ubbthreads/images/icons/frown.gif[/img]
      It doesn't matter if I type the statements into the editor or paste them in, I consistently get the same result. The error message appears to say, the IF statement is missing, which confuses the heck out of me. I've built more than 20 commercial CD-ROM installers using Setup Factory and haven't seen a problem like this before. Naturally, this one has happened when I'm working to a tight deadline.
      I tried removing all the IF ... ENDIF code except one, I've double-checked the variables, and I have no idea what's wrong.
      Someone (Corey?) sent me a massive (55 line, >4,500 characters) chunk of 'code' which mixed html with something labelled IR_ACTIONS_LIST which he said would fix the problem ... as his reply didn't appear here, and the code makes no sense to me, I've avoided trying it.
      I'm not sure what else to do.

      Comment


      • #4
        Re: IF conditions

        If you send me your project file(.sf6) I'll take a look to see if I can find the problem. You can send it to [email protected]

        Also are you using the latest build of the product, 6.0.1.2? If not, update and try it again.

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎