It is unfortunate that this is not documented anywhere, but I found the IF statement synax in one of Fanuc's .cm files.
Here it is:
Code
IF VAR $APPLICATION[2] "V7.30P/*"
SETVAR $CCSCB2_GRP[1].$FS_TYP2 1
ELSE
IF VAR $APPLICATION[2] "V7.40P/*"
SETVAR $CCSCB2_GRP[1].$FS_TYP2 1
ELSE
IF VAR $APPLICATION[2] "V7.50P/*"
SETVAR $CCSCB2_GRP[1].$FS_TYP2 1
ELSE
IF VAR $APPLICATION[2] "V7.60P/*"
SETVAR $CCSCB2_GRP[1].$FS_TYP2 1
ENDIF
ENDIF
ENDIF
ENDIF
Display More