Brother International PDP350CJ Owner's Manual - English - Page 394
Logical, functions in order to take a specified action.
View all Brother International PDP350CJ manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 394 highlights
Logical Functions The logical functions evaluate relationships and return true" or false" results. True = 1 (or non-zero values) and false = 0. The main purpose of logical functions is the IF() function, which evaluates any of the logical functions in order to take a specified action. Function AND (logical1, logical2,...) FALSE ( ) IF (logical, true value, false value) OR (logical1, logical2,...) TRUE ( ) Description True = 1 (or non-zero), False = 0 Example Logical AND. Returns 1 if all arguments are true or 0 is any of the arguments is false. Useful with IF statements. Logical can be either logical values, arrays or references to cells or fields that contain logical values. Text is ignored. If the argument does not contain a logical value, AND returns the #TYPE# error. See also OR. You can have as many logical arguments as you want. =AND(1+3=4,3+1=3) returns 0. =AND(1+3=4,3+1=4) returns 1. =IF(AND(A1>B1,A1A2,Ascending",Descending") returns Ascending if A1 is greater than A2. Otherwise the expression returns Descending. Returns 1 if at least one of the arguments is true or 0 if all of the arguments are false. The arguments can be values, cells or field references. You can have as many logical arguments as you want. OR ignores text. If an argument does not contain a logical value, OR returns the #TYPE# error. OR is particularly useful with IF expressions. See also AND. =OR(1+2=3,2+3=5) returns 1. =OR(1+2=3,2+3=4) returns 1. =OR((1+2=2,2+3=3)returns 0. =IF(OR(A1>100,A1=B1),25,50)returns 25 if A1 is 100 or less, or A1 equals B1. Returns 1. You can use TRUE in a calculation or enter it directly into a cell or field where it is interpreted as a logical value. You must include the empty parentheses. See also FALSE. Appendix 367