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

Repeat Region Relations - AND/ORs

rmaillet
1-Newbie

Repeat Region Relations - AND/ORs

I'm looking at a simple repeat region relation, one that will add a
"REF" for qty/name based on a given number.



if asm_mbr_name == "08457"

qtyqa="REF"

nameqa="REF"

else

qtyqa=rpt_qty

nameqa=asm_mbr_name

endif



My Question is, what If I have 3-4 numbers in my in the Region to REF
out? Can't seem to use if (asm_mbr_name == "08457") or (asm_mbr_name ==
"09887").

Elseif does not work. I've only ever had to use 1 name/type in the past?



Thanks - Robert Maillet

QuestAir Technologies


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

This worked ok. Set the values 1st, then only change the values based on
criteria.



qtyqa=rpt_qty

nameqa=asm_mbr_name



if asm_mbr_name == "08457"

qtyqa="REF"

nameqa="REF"

endif



if asm_mbr_name == "08455"

qtyqa="REF"

nameqa="REF"

endif



if asm_mbr_name == "08442"

qtyqa="REF"

nameqa="REF"

endif



_____
Announcements