question mark meaning
papawo
Member, Developers Posts: 206 PRO
Comments
-
It's a ternary operator: https://en.wikipedia.org/wiki/?:
Basically, if you type:var x = predicate ? 1 : 2;
Then if predicate is true, x is set to 1, if it is false, x is set to 2, and if predicate is not a boolean, an error is thrown.Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc1 -
thank you.
0

