Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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
Solved! Go to Solution.
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
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
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