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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

If Statement

ccates
1-Newbie

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

Accepted Solutions
ccates
1-Newbie
(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
1-Newbie
(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
1-Newbie
(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

Top Tags