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

royang

Former Member
8 REPLIES 8
Read only

Former Member
0 Likes
995

Syed,


if act eq 'd' AND act eq 'l'.
if not name is initial AND num is initial.
* perform
Else.

endif.
endif.

Regards

Aneesh.

Read only

Former Member
0 Likes
995

I can't understand how the field act can equal both 'd' and 'l'. If you want either 'd' or 'l' you would use;

if ( act eq 'd' OR act eq 'l' )

AND name is not initial

AND num is not initial.

  • perform

Else.

endif.

Regards,

Nick

Read only

Former Member
0 Likes
995

Hi,

if act eq 'd' AND act eq 'l' => this is impossible... a field can't store 2 different values at the same time...

Regards,

Nicolas.

Read only

Former Member
0 Likes
995

You'll never get into the if part because act cannot be 'd' and 'I' at the same time which it has to be in your code.

Do you mean:

IF ( act eq 'd' or act eq 'I' ) AND name is not initial AND num is not initial.

Regards,

Michael

Read only

Former Member
0 Likes
995

Hi.

Try this..

If ( Act = 'D' or Act = 'I' ) And Name NE ' ' And Num NE ' '

Perform***

Else.

Endif..

Regards

Bala.

Read only

Former Member
0 Likes
995

Hi syed chekc this...


if  ( act eq 'd' OR act eq 'l' ) AND
    ( name is not initial ) AND
    ( num is not initial ).
* perform
Else.

endif.

"Do not remove your question as you did in earlier posts....

Read only

Former Member
0 Likes
995

I think you mean <b>or</b> in the first condition.

Rob

Read only

Former Member
0 Likes
995

Hi Syed,

do like this

if act eq 'd' or act eq 'l' .
 if not name is initial AND not num is initial.
*  perform
 else.
*  do some thing
 endif.
endif.

Regards,

Satish