How to Create a Succession of Condition in Solidworks Equations

I want to create a standard machine for this I create equations on one of it I want to tell it if the value is = a 6 then you put the A=64.5 dimension on it

or if the value is = to 8 you give it the A=70 rating otherwise you give it the A=999 rating

Hello

A=OR(IF(a=8; 70; 999); IF(a=6; 64.5; 999))

Or something like that

 

 

2 Likes

Logically conditions are named by IF THEN ELSE

 

But in Solidworks, the Then and Else are replaced by commas.

2 Likes

IF (x) = 6, 64.5, 999

IF (x) = 8, 70, 999

 

Can that work?

 

1 Like

Hello

 

Shouldn't we bring all of this together in 1 equation?

in the genus Si (a=6.64.5, if(a=8.70.999))

In this genre, I'm not a specialist, but on Excel I've already tried its and its works.

2 Likes

I tested it at home it works =)

 

= IIF ( "b" = 6 , 64.5 , IIF ( "b" = 8 , 70 , 999 ) )

 

The proof in pictures =)


equation.png
7 Likes

Exactly what Bart thought!

 

1 Like

Great minds meet =)

2 Likes

thank you bart too hard it works!!!

 

1 Like