expr-lang/expr

Does Expr have Control flow

Closed this issue · 2 comments

Hey, good day am trying to integrate this into a project as a middleware for the project, I predicted the script is gonna get a little complex, is there a way to have if statements or if-else, I can’t find any documentation or issues about this.
Thanks

As far as I know, Expr only has the ternary statement:

valueA != valueB ? do-if-true : do-if-false

It's in the Operators.

Yeap. But I do want to implement if statements as well.