Loading
InstallScript If Logic
Greetings,

 

 

Is it possible to do Or/Ands in if statements.

 

Like in VB you would do

 

If condition = somevalue or condition=someothervalue then

 

do something

 

else

 

do something else

 

end if

 

I was trying to see this in the documentation, but didn't see it anywhere, so was wondering if this was possible.

  • Community Manager (Flexera Software)

    Yes, it works similarly to C; for logical-or:if ((var1=1) || (var2=2)) then // etc.

     

    And logical-and:if ((var1=1) && (var2=2)) then // etc.
  • " RobertDickau wrote:

     

    Yes, it works similarly to C; for logical-or:if ((var1=1) || (var2=2)) then // etc.

     

    And logical-and:if ((var1=1) && (var2=2)) then // etc. "

     

    Thank you.:)
    Expand Post

Loading
InstallScript If Logic