Skip to content

add if-else conditional #736

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

Merged
merged 3 commits into from
Feb 23, 2025
Merged

add if-else conditional #736

merged 3 commits into from
Feb 23, 2025

Conversation

OlgaNovg
Copy link
Contributor

@OlgaNovg OlgaNovg commented Dec 4, 2024

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}

@antonmedv antonmedv closed this Feb 23, 2025
@antonmedv antonmedv reopened this Feb 23, 2025
@antonmedv antonmedv merged commit a3b6cd2 into expr-lang:master Feb 23, 2025
20 of 24 checks passed
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 free to 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