Originally posted by ADP02
View Post
so here you go. So I will explain it in Boolean.
AND Operator
The operator AND is a parallel to the conjunction "and". If we put together several conditions using AND, then the resultant condition is valid ONLY if EACH condition is valid. In everyday life we use this operator in the following consideration: "When it's raining AND I am out THEN I open my umbrella." or "When it is raining on me AND I have my umbrella THEN I open it." (IF (it`s raining on me) AND (I have got my umbrella) THEN (I open it)).
AN EXAMPLE USING THE AND OPERATOR
Program Operator_AND;
var a,b:integer;
begin
readln(a);
readln(b);
IF **a<0) AND (b<0)) THEN
writeln('Numbers a and b are both negative')
ELSE
writeln('Numbers a and b are not both negative');
end.
Note that the whole condition **a <0) AND (b <0)) is closed in the brackets - usually it is not necessary, but in some programming languages it is required to close any complex condition in the brackets, that is why it is good way to get used to this syntax.
OR Operator
The operator OR is parallel to the conjunction "or". If we put together several conditions using OR, then the resultant condition is valid when AT LEAST ONE of the conditions is valid (and it is not valid only if none of the conditions is valid). In everyday life we use this operator in the following considerations, for example: "When I am hungry or I like tasty meals, I take something delicious." or "When I want to be a good student or I am bored, I learn something." (IF (I want to be a good student) OR (I`m bored) THEN (I learn)).
So when the retroactive tue function was called only one ,A OR B OR C has to be true.
Read this 10 more times if you don't get it.
There is no way around it. This is not something that is debateable. You must under stand conjunctions in order apply Wada code. Period.
When you accept this simple concept you will realize what people have been telling you all along. Your conspiracy is based on misinformation.
If can not accept this you will remain a member of THE SCHOLASTIC FOUR.
Comment