Unanswered
There is such an operator; the documentation calls ita "conditional operator".
https://ton.org/docs/develop/func/statements#conditional-operator
This is the example provided:
;; <condition> ? <consequence> : <alternative>
x > 0 ? x * fac(x - 1) : 1;
429 Views
0
Answers
one year ago
one year ago
Just remember to use space around
?
and:
.