×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

IF string

IF string

IF string

(OP)
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

RE: IF string

(OP)
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

RE: IF string

You can shorten it a little:

CODE

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

www.nxjournaling.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources