simit icon indicating copy to clipboard operation
simit copied to clipboard

Add conditional operator

Open Lugatod opened this issue 8 years ago • 0 comments

In order to avoid these kind of if-then-else :

if booleanCondition variable = TrueValue else variable = FalseValue end

Is it possible to add a conditional operator ?

variable = (boolean condition) ? (TrueValue) [:(FalseValue)];

Ideally, this operator should work for all types and sets.

Lugatod avatar Oct 05 '16 21:10 Lugatod