Can NSIS scripts add 2 integers and 'OR' a StrCmp

Is it possible to add 2 numbers to Native NSIS (without using libraries)?

Var hasVersion9    # values will either be 0 or 1
Var hasVersion10
Var hasVersion9Or10

IntCpy $hasVersion9Or10 hasVersion9+hasVersion10
(IntCmp $hasVersion9Or10 1 OR IntCmp $hasVersion9Or10 2) doThis doThat

Can I also perform the "Or" operation on string comparisons?

StrCmp $myVar ("1" OR "11") doThis doThat
+3
source share
1 answer

Use IntOp for numeric operations and logiclib for if / orif

+6
source

All Articles