luthienanarion Posted December 14, 2016 Share Posted December 14, 2016 (edited) Correct. I'm not sure if there is a limit to using && to add expressions to one IF condition; that limit is for nesting IF...ENDIF blocks inside each other. The GECK will throw an error when compiling (assuming GECK-PU) if you nest them too deep. It's also a lot more complex to convert a single IF to nested IFs when using || (OR) or a combination of || and &&, because you end up having to repeat some of them. It's a mostly negligible performance difference, unless you perform multiple heavy or slow function calls to determine whether or not to run a block of code in a script that runs often (an object script, for example). Edited December 14, 2016 by luthienanarion Link to comment Share on other sites More sharing options...
Recommended Posts