what exactly do you mean by the words ".. and AND" from right to left "?
this is from oracle documentation =>
In the following example, note that when the valid value is FALSE, the whole expression gives FALSE regardless of the done value:
valid AND done
you can check the order in the following example:
DECLARATION
b1 BOOLEAN,
b2 BOOLEAN,
FUNCTION checkit (v NUMBER)
RETURN MORE
IS
TO BEGIN
DBMS_OUTPUT.put_line ('inside checkit:' || v);
RETURN TRUE
END checkit,
PROCEDURE outp (n VARCHAR2, p BOOLEAN)
IS
TO BEGIN
IF p
THEN
DBMS_OUTPUT.put_line (n || 'is true'); ELSE
DBMS_OUTPUT.put_line (n || 'is false'); END IF,
END
TO BEGIN
b1: = checkit (1) and checkit (2);
outp ('b1', b1);
b2: = checkit (3) and checkit (4);
outp ('b2', b2);
END
inside checkit: 1
inside checkit: 2
b1 is true
inside checkit: 3
inside checkit: 4
b2 true
source share