Announcements
Visit Fusion 360 Feedback Hub, the great way to connect to our Product, UX, and Research teams. See you there!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Parameter Ternary Operator

Parameter Ternary Operator

It would be useful to have the ternary operator "(condition)?true:false" to address those occasional parametric needs that can't be easily kludged with nested min/max functions.

1 Comment
sgraves
Enthusiast

It is kludgy, but one can do a closer approximation of this function than nested min/max using the sign() function.  One must arrange the test to return a positive or negative value.  Then multiply one expression by sign(test) and another by sign(-test) and add them together.  One sign() will be 0 and the other 1.  One of the two expressions will be adding 0 and the other 1 x the desired expression.

 

However, it would much clearer and not so kludgy if there was a Ternary operator.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report