AnsweredAssumed Answered

Nested if then equation issues

Question asked by David Dewey on Feb 28, 2017
Latest reply on Feb 28, 2017 by David Dewey

I have the following equation driving a global variable in solidworks.

 

= iif ( "ANSI150" = 0 , ( ( "NONANSIFLGWIDTH" * 2 ) + "ID" ) , iif ( "ID" = 4 , 9 , iif ( "ID" = 5 , 10 , iif ( "ID" = 6 , 11 , iif ( "ID" = 8 , 13.5 , iif ( "ID" = 10 , 16 , iif ( "ID" = 12 , 19 , iif ( "ID" = 14 , 21 , iif ( "ID" = 16 , 23.5 , iif ( "ID" = 18 , 25 , iif ( "ID" = 20 , 27.5 , iif ( "ID" = 24 , 32 , ( "ID" + ( "NONANSIFLGWIDTH" * 2 ) ) ) ) ) ) ) ) ) ) ) ) ) )

 

Everything works fine, except when I enter the ID as 12, the calculation sees it as false and makes the OD 15 (false fallback) as opposed to 19". Can anyone help me out why this seems to be evaluating like this?

Outcomes