Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

IF string 1

Status
Not open for further replies.

Lupen

Mechanical
Aug 5, 2014
14
0
0
SI
Hello to everybody,

i need some help with makeing an expression.
I would like to create an IF string expresion with more conditions wich would determin an dimension value:

lets say I need dimension P10 to be:

if the multiplication of dimensions (P6xP7)<=100 than i get value 10
if the multiplication of dimensions 100<(P6xP7)<=200 than i get value 20
if the multiplication of dimensions 200<(P6xP7)<=300 than i get value 30
if the multiplication of dimensions (P6xP7)>300 than i get value 40

Is this possible?
I have NX9.

Thank You
Luka
 
Replies continue below

Recommended for you

Hello

i figured it out already. I should not use the multiplication in my if statement.
I set an expresion for P6xP7 first as an Area (called pov).
Than i recalled this value in my if string.

its a long statement but it works

if(pov<=100)(10)else(if(pov>100 & pov<=200)(20)else(if(pov>200 & pov<=300)(30)else(if(pov>300 & pov<=400)(40)else(if(pov>400 & pov<=500)(50)else(60)))))

Thanks anyway
 
Status
Not open for further replies.
Back
Top