-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
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.
Metadata
Metadata
Assignees
Labels
FEATURESmall enhancementsSmall enhancements
Type
Projects
Status
No status