Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

How to write a greater than parameter. if greater than or equal to height subtract .125

john_chipukites
Contributor

How to write a greater than parameter. if greater than or equal to height subtract .125

john_chipukites
Contributor
Contributor

I am trying to write a parameter in fusion 360 that if the height is greater than or equal to .5in it will subtract .125. What I have now is below and it doesn't work. Not sure how to write the function so fusion will read it, any help would be appreciated.

 

if( Height >= .5 in ; - .125 in )

 

Thank you

John

0 Likes
Reply
Accepted solutions (1)
421 Views
4 Replies
Replies (4)

HughesTooling
Consultant
Consultant

It needs to look something like this.

Clipboard01.png

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes

jhackney1972
Consultant
Consultant
Accepted solution

The If function requires two arguments, one if the if function is true and one if the if function is false.  You forgot the second argument.  Below is an example.  In this example the false value is "1.0".  Model I used it in is attached.  Change the "Height" variable to a value larger than 1.5" and the "New Height" will become .125" that the "Height" variable.

 

If Statement.png

John Hackney, Retired
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes

john_chipukites
Contributor
Contributor

That's what was missing.

 

Thank you 

John

0 Likes

g-andresen
Consultant
Consultant

Hi,

just take a look at the Product Documentation 

 

günther

0 Likes