Describe the bug
I can use bitwise operations like &, ^ or | but only in the Evaluate expression when setting variables. When I try to use it in the if Math Expression event it doesn't calculate correctly.
To Reproduce
Steps to reproduce the behavior (I have a screen grab to illustrate):
Create an If math expression event
Insert a bitwise operation to equal zero from non-zero variables and use an equal operator to compare with 0
Insert a display dialog inside
Play and see the dialog does not appear
Expected behavior
The if statement should have returned true
Describe the bug I can use bitwise operations like &, ^ or | but only in the Evaluate expression when setting variables. When I try to use it in the if Math Expression event it doesn't calculate correctly.
To Reproduce Steps to reproduce the behavior (I have a screen grab to illustrate):
Expected behavior The if statement should have returned true
Screenshots
https://github.com/chrismaltby/gb-studio/assets/50088659/2f2bbe77-9986-4e4b-b3e4-448acbac37c9
Platform (please complete the following information):
Additional context Add any other context about the problem here.