Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
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
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"
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.
MASSE will have to be a real value.