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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

If Statement

ccates
12-Amethyst

If Statement

Can I build an if statement that would perform the following:

 

If parameter SEE_TABLE exists

name= "SEE TABLE"

ELSE

IF ASM_MBR_RAW_MATERIAL==TRUE

name=asm_mbr_imn

ELSE

name=asm_mbr_name

ENDIF

 

I would guess this is a nested if statement but my background with programming isn't extensive.

 

Thank you all for the help!

 

C


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.
ACCEPTED SOLUTION

Accepted Solutions
ccates
12-Amethyst
(To:ccates)

The correct format is as follows.

IF EXISTS("ASM_MBR_SEE_TABLE")

name="SEE TABLE"

ELSE

IF ASM_MBR_RAW_MATERIAL==TRUE

name=asm_mbr_imn

ELSE

NAME=asm_mbr_name

ENDIF

ENDIF

View solution in original post

2 REPLIES 2
ccates
12-Amethyst
(To:ccates)

I have updated some of the coding, however I cannot get the relations to work. As of now the relation is as follows:

IF EXISTS("ASM_MBR_SEE_TABLE")

name="SEE TABLE"

ELSE

IF ASM_MBR_RAW_MATERIAL==TRUE

name=asm_mbr_imn

ELSE

NAME=asm_mbr_name

ENDIF

ccates
12-Amethyst
(To:ccates)

The correct format is as follows.

IF EXISTS("ASM_MBR_SEE_TABLE")

name="SEE TABLE"

ELSE

IF ASM_MBR_RAW_MATERIAL==TRUE

name=asm_mbr_imn

ELSE

NAME=asm_mbr_name

ENDIF

ENDIF

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags