Partial If with Or
Posted: Thu Aug 19, 2021 9:17 pm
Hello,
I know that if I write something like
PureBasic stops after the "0", which makes sense.
But what if I write
Does it apply for Or, too? I know, that it won't stop, even if the first value is a "0", but would
be faster than
assuming that if simple is often #True and the two complex and time consuming functions aren't called at all?
I know that if I write something like
Code: Select all
If 1 And 0 And 1But what if I write
Code: Select all
If 1 Or 0Code: Select all
If simple Or (ComplexFunction()1 And ComplexFunction2())Code: Select all
If (ComplexFunction()1 And ComplexFunction2()) Or simple