kriti-lang icon indicating copy to clipboard operation
kriti-lang copied to clipboard

Add Conditional (ternary) operator

Open SofiaXu opened this issue 1 year ago • 0 comments

I have added the conditional (ternary) operator.

Syntax

{{ condition ? exprIfTrue : exprIfFalse }}

Example

{{($.event.op == "INSERT") ? "1" : "-1"}}

SofiaXu avatar Jun 11 '23 01:06 SofiaXu