Is there a ternary operator in FunC?
Is there a ternary operator in FunC?
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:
```clike
;; <condition> ? <consequence> : <alternative>
x > 0 ? x * fac(x - 1) : 1;
```
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:
```c-like
;; <condition> ? <consequence> : <alternative>
x > 0 ? x * fac(x - 1) : 1;
```
Is there a ternary operator in FunC?
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:
```c-like
;; <condition> ? <consequence> : <alternative>
x > 0 ? x * fac(x - 1) : 1;
```