Need help for Logic

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Socio
Posts: 48
Joined: May 1st, 2017, 4:47 am

Need help for Logic

Post by Socio »

Hi greeting to all

Is it possible to have a logic for a variable at a same time like -
where one is > 2 and another is 98 (don't know) to be accepted.

PROC Q25
if $>2 THEN
ERRMSG ("%D CANNOT BE REQUIRED NUMBER", Q25);
REENTER;
ENDIF;

Note: I want to let it accept 98 also after if $>2.

Thank you.
romi237
Posts: 11
Joined: November 30th, 2018, 1:18 pm

Re: Need help for Logic

Post by romi237 »

try some thing like this

PROC Q25
if $>2 and $ <> 98 THEN
ERRMSG ("%D CANNOT BE REQUIRED NUMBER", Q25);
REENTER;
ENDIF;
Socio
Posts: 48
Joined: May 1st, 2017, 4:47 am

Re: Need help for Logic

Post by Socio »

Hi Romi237

Thanks
Post Reply