Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Score DSL] add binary condition syntax #172

Open
donmendelson opened this issue Nov 17, 2022 · 0 comments
Open

[Score DSL] add binary condition syntax #172

donmendelson opened this issue Nov 17, 2022 · 0 comments
Assignees
Labels
FEATURE Small enhancements

Comments

@donmendelson
Copy link
Member

Frequently, applications have binary conditional logic that depends on a value. The logic is soften something like “If this field is present, echo the value. Otherwise, set a default value.”

Programming languages derived from C have what’s called the ternary operator. It has the form: condition ? <expression if true> : <expression if false>. Example :(marks >= 40) ? "passed" : "failed"

Similarly, Excel has an If function. Example: =IF(C2>B2,”Over Budget”,”Within Budget”)

I propose that such an “if” expression be added to Score DSL in a manner consistent with its syntax.

@donmendelson donmendelson added this to the Orchestra v1.1RC2 milestone Nov 17, 2022
@kleihan kleihan self-assigned this Aug 9, 2024
@kleihan kleihan added FEATURE Small enhancements and removed enhancement labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEATURE Small enhancements
Projects
Status: Backlog
Development

No branches or pull requests

2 participants