×
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

Siemens UG/NX If-Statement with 4 conditions

Siemens UG/NX If-Statement with 4 conditions

Siemens UG/NX If-Statement with 4 conditions

(OP)
thread561-309597: Nested if-statement in NX 7.5

I am trying to make a if-statement with 4 conditions to it, but without success. I could get one to work with 3 conditions thanks to the referenced thread.
This is what I created for the 3 conditions if-statement... if(Bottom_level==6)(Bottom_2nd_stage_6H)else(if(Bottom_level==5)(Bottom_2nd_stage_5H)else(Bottom_2nd_stage_4H))

but now for the 'Top level' I want to have a 4 condition if-statement. I tried this, but it says there is a problem.
if(Top_level==6)(Top_2nd_stage_6H)else(if(Top_level==5)(Top_2nd_stage_5H)else(if(Top_level==4)(Top_2nd_stage_4H))else(Top_2nd_stage_3H))

any ideas?

Thanks.

RE: Siemens UG/NX If-Statement with 4 conditions

Hi Ben,
Try this.
if(Top_level==6)(Top_2nd_stage_6H)else(if(Top_level==5)(Top_2nd_stage_5H)else (if(Top_level==4)(Top_2nd_stage_4H) else (Top_2nd_stage_3H)))
I guess you missed out the last bracket otherwise it is gfine.
Best Regards
Kapil Sharma

RE: Siemens UG/NX If-Statement with 4 conditions

(OP)
Thanks Kapil! That did the trick. I didn't notice I was missing the last bracket.

Best regards,
Ben Nichols

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