Boolean logic

Got a problem you cannot solve? Try here.
Post Reply
NickDay
Posts: 145
Joined: Tue Oct 05, 2010 9:13 am

Boolean logic

Post by NickDay »

Am I overlooking a way to use Boolean logic in MSI scripts?

I would like to be able to write
if Variable setup_one Equals TRUE or Variable setup_two EQUALS TRUE
but compounding conditional expressions with 'or' or 'and' does not seem to be possible.

As a result, I am ending up with slightly long-winded MSI code.

If I've overlooked a way to do this, please let me know.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Boolean logic

Post by giaviv »

Dear Nick,

Please take a look at the InstallAware Eval command - its exactly what you are looking for!

Code: Select all

Eval RESULT = $setup_one$="TRUE" or $setup_two$="TRUE"
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
NickDay
Posts: 145
Joined: Tue Oct 05, 2010 9:13 am

Re: Boolean logic

Post by NickDay »

Thank you Aviv, that's what I need.
Nick
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Boolean logic

Post by giaviv »

You're welcome!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply