‎2008 Jul 09 9:54 AM
In my Report i have two variables Z1 ana Z2.
If Z1 and Z2 >= 100 then 'select' statement should execute inside IF....ENDIF.when im coding like this
IF (Z1 AND Z2) >= 100.
SELECT STATEMENT
ENDIF, it is generating error.Please help.
Thanks
K Srinivas
‎2008 Jul 09 9:55 AM
hi,
you have to do like this:
IF Z1 GE 100 AND Z2 GE 100
SELECT...
ENDIF.hope this helps
ec
‎2008 Jul 09 9:55 AM
hi,
you have to do like this:
IF Z1 GE 100 AND Z2 GE 100
SELECT...
ENDIF.hope this helps
ec
‎2008 Jul 09 9:57 AM
You have to split Z1 and Z2 like this:
IF ( Z1 GE 100 ) AND ( Z2 GE 100 ).
SELECT ....
ENDIF.using ( ) is good for code readability.
Edited by: Kev Mycock on Jul 9, 2008 4:57 AM
‎2008 Jul 09 9:58 AM
Hi,
Check this :
IF z1 GE 100 AND z2 GE 100.
*<select statement>
ENDIF.Regards
Adil
‎2008 Jul 09 9:59 AM