Page 1 of 1

Boolean logic

Posted: Tue Jun 14, 2011 5:45 am
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.

Re: Boolean logic

Posted: Tue Jun 14, 2011 9:01 am
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"

Re: Boolean logic

Posted: Tue Jun 14, 2011 9:24 am
by NickDay
Thank you Aviv, that's what I need.
Nick

Re: Boolean logic

Posted: Tue Jun 14, 2011 9:39 am
by giaviv
You're welcome!