March 18, 2004, 06:47 AM
<beginner>HOW TO USE IF-ELSE STATEMENT IN FOCUS
Hi;
Here is my attempt:
DEFINE TABLE MYTABLE
..
..
IF 0 THEN
MYLINE1/A225='ORG1 ORG2 '|
'ORG3 ORG4';
ELSE
MYLINE1/A225='NEW1 NEW2 '|
'NEW3 NEW4';
END
but it throws me a syntax error. Any sugguestion?
Note: I put zero as condition coz I want to test if it goes to else part
waiting for help,
new focuser
March 18, 2004, 08:35 AM
MikelTry this:
DEFINE FILE MYTABLE
MYLINE/A225 = IF 1 EQ 0 THEN 'ORG1 ORG2 '| 'ORG3 ORG4'
ELSE 'NEW1 NEW2 '| 'NEW3 NEW4';
END
Doc.Ref.:
Writing Conditional Expressions.
Regards,
Mikel
This message has been edited. Last edited by: <Mabel>, March 18, 2004, 01:16 PM
<beginner>Thank you very much for your help.
It took me a few hours to figure that out ~>
I'll be visiting this site with more questions soon.
See you all again.