Implement "OR" and "AND" conditionals via an if... then
section
#5152
-
Problem
or you must set vars to check (for "or"): set {_or} to true if foo() is bar()
set {_or} to true if otherfoo() is otherbar()
set {_or} to true if otherotherfoo() is otherotherbar()
if {_or} is true:
# do something While you could use inline conditions to make Proposed Solution
As you can see, these are both way cleaner and easier to write than the original code. In addition, the parser can handle it better as each condition is on it's own line. It even increases performance as the "or" example can now be short circuited behind the scenes! Proposed Syntax Other Considerations
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I love this idea, i think it would be good to make sure an |
Beta Was this translation helpful? Give feedback.
-
Feature has been merged in #5165! |
Beta Was this translation helpful? Give feedback.
Feature has been merged in #5165!