|
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. |
Replies: 10 comments 11 replies
|
As far as I know, Expr only has the ternary statement: It's in the Operators. |
|
Yeap. But I do want to implement if statements as well. |
|
If it could support control flow and custom functions, that would be great. |
|
maybe we can implement a simple "pattern matching" first? or something like aboves is really help |
|
BTW: currently I use |
|
Would greatly benefit control flow as well. Either switch case or if/else are good options for my use-cases. I can work around with ternary however, just less practical. |
|
@antonmedv Any plans on having if-else in near future? It's easier for business folks as well to use |
|
Hey folks - excited that this is now merged! Is there a timeline for the next release? |
|
Now Expr has control flows! let foo = if bar > 0 {
true
} else {
false
} |

Now Expr has control flows!