LOGIC | Test Operations (Page 2 of 3) |
We can also check the truth of compound statements containing Boolean operators. The operations "and" and "or" are used to join two individual statements. A statement containing the word "and" is true if BOTH parts are true; a statement containing the word "or" is true if at least one of the statements is true. The Boolean operators are found in the LOGIC submenu of the TEST menu. For example, let's see if is true. We will test this by writing it as separate inequalities joined by the word "and": . This is a true statement, because a value of 1 was returned. |
|
Copyright © 2010 Turner Educational Publishing
|