support
support copied to clipboard
[Feature] Improve code generation for logical negation
Is your feature request related to a problem? Please describe.
Translates to:
print(not Button.CENTER in inventor_hub.buttons.pressed())
while not not Button.CENTER in inventor_hub.buttons.pressed():
wait(1)
But it would be cleaner to generate:
print(Button.CENTER not in inventor_hub.buttons.pressed())
while Button.CENTER in inventor_hub.buttons.pressed():
wait(1)