I have a project with 24 packages in it, each package consists of a single exe, and they're installed by means of two Select Packages screens, 12 on each.
What I need to do if before installing, close any copies of the programs they have running already, and after installing set a reg key, and run any they chose to install.
And so, IF statements checking to see if the package variables are true or false seemed logical.
I set up two Show Message dialogs that displayed the current values of the 24 package variables... and it correctly displays TRUE for the ones that were selected for installation, and FALSE for those that weren't. But when I try to use an IF statement on the variable, it fails.
So I made a test project with only two packages. Chose to install one, and not the other. Displaying the two vars with a Show Message shows TRUE for the first and FALSE for the second. SO I set up a bunch of if statements to see which would trigger and which wouldn't. I tested both tosee if they equalled true, True, TRUE, "true", "True", "TRUE", false, False, FALSE, "false", "False", "FALSE", 0, and <> 0... and <> 0 triggers on both of them whenever they're true or false, and *NONE* of the other fired.
Can someone explain this? How is it when I print the two vars it correctly shows them as being TRUE and FALSE, but I can't seem to use any kind of IF statement on them and have them work.
What I need to do if before installing, close any copies of the programs they have running already, and after installing set a reg key, and run any they chose to install.
And so, IF statements checking to see if the package variables are true or false seemed logical.
I set up two Show Message dialogs that displayed the current values of the 24 package variables... and it correctly displays TRUE for the ones that were selected for installation, and FALSE for those that weren't. But when I try to use an IF statement on the variable, it fails.
So I made a test project with only two packages. Chose to install one, and not the other. Displaying the two vars with a Show Message shows TRUE for the first and FALSE for the second. SO I set up a bunch of if statements to see which would trigger and which wouldn't. I tested both tosee if they equalled true, True, TRUE, "true", "True", "TRUE", false, False, FALSE, "false", "False", "FALSE", 0, and <> 0... and <> 0 triggers on both of them whenever they're true or false, and *NONE* of the other fired.
Can someone explain this? How is it when I print the two vars it correctly shows them as being TRUE and FALSE, but I can't seem to use any kind of IF statement on them and have them work.
Comment