openroberta-lab
openroberta-lab copied to clipboard
Condition `true == null` causes incorrect behaviour in simulation
Describe the bug
- When an 'if' block is used with the condition true != null, the do block does not execute. This is not the expected behaviour in usual programming languages.
To Reproduce Steps to reproduce the behavior:
- Create a nepo program.
- Use the if block.
- Use the condition "true != null".
- Do statement does not execute in the simulation.
Expected behavior
- The 'do' statement of the 'if' block should execute as "true != null" evaluates to true.
Screenshots
Device information
- Type: Desktop
- OS: MacOS
- Browser: Chrome
Additional context
- Seems to happen in other robot simulations as well.
should be fixed together with #306
Seems to be solved with the new simulation.

The problem is not solved, because "if true == null" produces same result.