Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to set a range between expression values?

Status
Not open for further replies.

Tivabo

Industrial
Jan 8, 2014
18
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)
 
Replies continue below

Recommended for you

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

 
Hi Tivabo,
Try if((length_block<310) | (length_block>320)) (1) else (0)
This will put a range.
Regards
Kapil
 
Thanks! Both solutions work! great!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor