AnsweredAssumed Answered

Nested if statements in part

Question asked by Klaus Falk Hansen on Mar 13, 2019
Latest reply on Mar 13, 2019 by Klaus Falk Hansen

Dear all

 

im struggeling with an if-statement in my equations, that i will use to drive a dimension based upon a diameter of a hole.

It is intended to be used for a standard feature to make a clearance hole for an ejector pin for mould design.

 

I get a syntax in the equation, and i can't figure out how to do it correctly.

What im trying to opbtain is something like this:

if "cut@sketch1" is between 1 and 2, it should return a value of 5, if "cut@sketch1" is between 2 and 4, it should return a value of 8, if "cut@sketch1" is between 4 and 6, it should return a value of 10 etc.s etc.

 

this is how i have made the equation (which fails):

 

= IIF ( "cut@Sketch1" > = 0.4 , 3.5 , IIF ( "cut@Sketch1" < = 1 , 3.5 , IIF ( "cut@Sketch1" > = 1.1 , 5 , IIF ( "cut@Sketch1" < = 1.7 ) ) )

 

can anyone point me in the right direction?

 

Thank in advance

 

Klaus

Outcomes