×
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

Is it possible to set a range between expression values?

Is it possible to set a range between expression values?

Is it possible to set a range between expression values?

(OP)
For example:

I want to suppress 1 part in the assembly if the length of the block is less then 310 or greater then 320.
Is it possible to put this in one formula? I only got the formula working with the less function shown down here:

if (length_block<310) (0) else (1)

RE: Is it possible to set a range between expression values?

Hello,

I think in one formula is unposible, but You can write something like this:

formula1: if (length_block<310) (0) else (fomula2)
formula2: if (length_block<320) (1) else (0)

Best regards

Michal Nowak

RE: Is it possible to set a range between expression values?

Hi Tivabo,
Try if((length_block<310) | (length_block>320)) (1) else (0)
This will put a range.
Regards
Kapil

RE: Is it possible to set a range between expression values?

(OP)
Thanks! Both solutions work! great!!

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