Skip to content

add if-else conditional - #736

Merged
antonmedv merged 3 commits into
expr-lang:masterfrom
OlgaNovg:ifelse
Feb 23, 2025
Merged

add if-else conditional#736
antonmedv merged 3 commits into
expr-lang:masterfrom
OlgaNovg:ifelse

Conversation

@OlgaNovg

Copy link
Copy Markdown
Contributor

If-else conditional operator added. Makes it possible to use multiline operator in if-else blocks:

let a = 2;
let b = 4;
if a>b {let c = Add(a, b); c } else {b+5}

@antonmedvantonmedv reopened this Feb 23, 2025
@antonmedv
antonmedv merged commit a3b6cd2 into expr-lang:masterFeb 23, 2025
SimFG pushed a commit to SimFG/expr that referenced this pull request Apr 15, 2025
Co-authored-by: Anton Medvedev <anton@medv.io>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@OlgaNovg@antonmedv