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

hi

Former Member
0 Likes
691

What is the order of operators in a logical expression?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
648

Brackets division multiplication addition subtraction ..

(BODMAS rule )

( / * + -

4 REPLIES 4
Read only

Former Member
0 Likes
649

Brackets division multiplication addition subtraction ..

(BODMAS rule )

( / * + -

Read only

Former Member
0 Likes
648

Hi subhash,

its always BODMAS rule in almost all programming language and no exception for SAP ABAP as well.

thanks & regards

Kishore Kumar Maram

Read only

former_member772790
Participant
0 Likes
648

For arithmatic operations:

BODMAS rule - Brackets division multiplication addition subtraction ..

For logical operations:

AND,OR and NOT

Read only

Former Member
0 Likes
648

Hi,

OR:

can be used to check whether any of the conditions are true.

ie.,

... log_exp1 OR log_exp2 OR log_exp3 ...

Effect

If you link multiple logical expressions log_exp with OR, then a new logical expression is created which is true if at least one of the logical expressions log_exp is true. Only if all logical expressions are false, then the link is false as well.

AND:

can be used to check whether all the conditons are satisfied.

... log_exp1 AND log_exp2 AND log_exp3 ...

Effect

The linking of several logical expressions log_exp with AND forms a new logical expression that is true when all logical expressions log_exp are true. If one of the logical expressions is false, then the link is also false.

Regards

Kiran Sure