support icon indicating copy to clipboard operation
support copied to clipboard

[Feature] Improve code generation for logical negation

Open laurensvalk opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

image

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)

laurensvalk avatar Dec 07 '23 12:12 laurensvalk