Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

help in condition

Former Member
0 Likes
473

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
451

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

3 REPLIES 3
Read only

Former Member
0 Likes
452

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

Read only

0 Likes
451

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

Read only

0 Likes
451

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.