WHYGUMBY
Member
I need help with 2 things I am new to programming and my supervisor/trainer is and *** and I dont want to aske him.
I am trying to make a button or buttons visable under two expressions I have to replicate a function on a wonder ware screen into a panel view.
IF LOG_MACHINE==100 THEN
IF CURRENT_MODE==0 THEN Show "Main";
ENDIF;
IF CURRENT_MODE==1 THEN Show "Main-Sheet";
ENDIF;
IF CURRENT_MODE==2 THEN Show "Main-TopFoil";
ENDIF;
IF CURRENT_MODE==3 THEN Show "Main-Cupcake";
ENDIF;
ELSE
IF CURRENT_MODE==0 THEN Show "Left-Main";
ENDIF;
IF CURRENT_MODE==1 THEN Show "Left-Main-Sheet";
ENDIF;
IF CURRENT_MODE==2 THEN Show "Left-Main-TopFoil";
ENDIF;
IF CURRENT_MODE==3 THEN Show "Left-Main-Cupcake";
ENDIF;
ENDIF;
My plan is to make each button "main" etc stack on top of each other and only visable in relation to {current_mode} and {log_machine} but it keeps giving me "THEN" error
Here is my expression I was trying to make work.
If {CURRENT_MODE}=0 AND
{LOG_MACHINE}=100
THEN 1
Else 0
this is what I get
Error at line 2, column 14:
THEN missing from expression.
Thank you for any help you can give a newb.
I am trying to make a button or buttons visable under two expressions I have to replicate a function on a wonder ware screen into a panel view.
IF LOG_MACHINE==100 THEN
IF CURRENT_MODE==0 THEN Show "Main";
ENDIF;
IF CURRENT_MODE==1 THEN Show "Main-Sheet";
ENDIF;
IF CURRENT_MODE==2 THEN Show "Main-TopFoil";
ENDIF;
IF CURRENT_MODE==3 THEN Show "Main-Cupcake";
ENDIF;
ELSE
IF CURRENT_MODE==0 THEN Show "Left-Main";
ENDIF;
IF CURRENT_MODE==1 THEN Show "Left-Main-Sheet";
ENDIF;
IF CURRENT_MODE==2 THEN Show "Left-Main-TopFoil";
ENDIF;
IF CURRENT_MODE==3 THEN Show "Left-Main-Cupcake";
ENDIF;
ENDIF;
My plan is to make each button "main" etc stack on top of each other and only visable in relation to {current_mode} and {log_machine} but it keeps giving me "THEN" error
Here is my expression I was trying to make work.
If {CURRENT_MODE}=0 AND
{LOG_MACHINE}=100
THEN 1
Else 0
this is what I get
Error at line 2, column 14:
THEN missing from expression.
Thank you for any help you can give a newb.