cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Logic in relations with parameters

phirschi
1-Newbie

Logic in relations with parameters

Dear community,

I would like to use the logic operations in the relation of a parts. But I have a failure message that I don't understand.

IF UNIT = G

error Logischer Ausdruck erwartet.

QUANTITY = MASSE

ELSE

QUANTITY = 1

ENDIF

Thanks in advance for you help.

Pascal

4 REPLIES 4

If you want to compare values, you'll need to use "double equal-sign"

IF UNIT == G

   QUANTITY = MASSE

ELSE

   QUANTITY = 1

ENDIF

Hi,

Thanks for you reply. The logical test now works but I still have a failure message.

The message is in German, but it means

"Relations contain running conditions and can't be sorted by"

Failuremessage.JPG

Thanks in advance for your help.

Pascal

That is as designed by PTC.

You can NOT use "Sort Relations" if there's an "IF THEN ELSE" statement in your relations.

You just have to be very carefull writing relations, making sure they are in the correct order.

BenLoosli
23-Emerald II
(To:phirschi)

MASSE will have to be a real value.

Top Tags