Currently ternary operator requires extra brackets to get 'switch-like' evaluation flow, for example:
a<0 ? 0 : (a>100 ? 100 : -a)
In case when there are many 'elseif' this requires a lot of nested brackets. To avoid that it makes sense to allow next ternary operator for part (which is currently not allowed), this makes possible to use expressions like that:
Currently ternary operator requires extra brackets to get 'switch-like' evaluation flow, for example:
In case when there are many 'elseif' this requires a lot of nested brackets. To avoid that it makes sense to allow next ternary operator for part (which is currently not allowed), this makes possible to use expressions like that: