(11-10-2022, 03:46 PM)dbox Wrote: Yes, this is something I've gone back and forth on. QBasic really only has bitwise operators, where Javascript has both bitwise and logical operators. So, at present the only true bitwise operator in QBJS is XOR. All other operators are being converted to their logical equivalents in JS. I like being able to take advantage of shortcut evaluation in conditional statements, but it does present a compatibility challenge.
Correct. We are also thinking about Boolean short-circuiting versions of AND and OR. See Boolean short-circuiting versions of `AND` and `OR` · Issue #211 · QB64-Phoenix-Edition/QB64pe (github.com)
I think you should keep the legacy functionality for AND and OR and use something else for Boolean short-circuiting versions of AND and OR (like AndAlso and OrElse). Would be nice to see this implemented in QBJS.