Continue to Site

# Help on Pro/Program

#### vishnushankar

##### New member
I need to suppress or resume a feature using this option but it does not run.

There are three parameters "LENGTH" , "WIDTH" (they are integers) and "RESULT" (is an yes/no).

The logic required is:

IF LENGTH>500 OR IF WIDTH>120

RESULT=YES

ELSE

RESULT=NO

END IF

The above doesn't work, Pro/E returns an error .

I have also tried the following:

IF LENGTH>500

IF WIDTH>120

RESULT=YES

ELSE

RESULT=NO

END IF

END IF

Even that doesn't work.

What I basically require is if either the "LENGTH" or "WIDTH" is
greater than a certain value then the "RESULT" parameter needs to be
true. As I will be subsequently using this to through an text which
tells that the design criterion is Failed.

Regards,

Vishnu

Aguess:

IF (LENGTH>500 ORWIDTH>120)
RESULT=YES
ELSE
RESULT=NO
END IF

Vishnu,

Here is a list of the logical and inequality Operators used in Pro/E Relations:
<UL>
<LI>logical comparison: & (and), | (or), ! (not)</LI>
<LI>logical equality: ==</LI>
<LI>inequalities: != (not equal), < (greater than), > (less than), <= (greater than or equal), >= (less than or equal)</LI>[/list]

LENGTH>500|WIDTH>120

good luck!

Best regards,

Matthew Ian Loew
Edited by: Mloew

Hi Matthew,

The option which you have suggested

LENGTH>500|WIDTH>120

works perfectly.

Thanks a ton for the help.

Best regards

Vishnu

Vishnu,

Best regards,

Matthew

HI vishnu,

can u give me some basic fundas @ pro-programming like syntax/key functions,conditioning etc

Thanks a lot vishnu.

I'll go through it & revret back to you for further guidence

Moreswhar,

Thank Matthew not me as he is the one who has given you the links.

Vishnu

Thanks Matthew