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

If Statement

SOLVED
Highlighted
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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: If Statement

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

2 REPLIES 2

Re: If Statement

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

Re: If Statement

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