‎2007 Nov 04 9:28 AM
hi,
i do that code to catch when stdaz eq to '0' or stdaz eq to '0.5'
i wont to change the condition when stdaz ge '0' and le '0.5' add 1 TO cnt_holid.
how i can do that ?
* IF ( <target_hours_exp>-stdaz = '0' OR <target_hours_exp>-stdaz = '0.5' ).
ADD 1 TO cnt_holid.
Regards
‎2007 Nov 04 9:38 AM
Hi Ricardo,
Try this
IF ( <target_hours_exp>-stdaz ge '0' OR <target_hours_exp>-stdaz le '0.5' ).
ADD 1 TO cnt_holid.
regards
Ravi
‎2007 Nov 04 9:38 AM
Hi Ricardo,
Try this
IF ( <target_hours_exp>-stdaz ge '0' OR <target_hours_exp>-stdaz le '0.5' ).
ADD 1 TO cnt_holid.
regards
Ravi
‎2007 Nov 04 2:34 PM
hi ravi
i try it but its not working it count every number , i wont just to do the count just when stdaz btween 0 to 0.5 .
Regards
‎2007 Nov 04 2:39 PM
Hi Ricardo,
You have to use AND and not OR
IF ( <target_hours_exp>-stdaz ge '0' AND <target_hours_exp>-stdaz le '0.5' ).
So whenever the fielde STDAZ has a value between 0 and 0.5, the condition will be true.