|
|||||||||
|
|
![]() |
|
|
|
![]() |
![]() |
|
Crystal Reports Tools: Improve Performance While Saving Time and Money |
|
Crystal Reports: Boolean LogicUse correct Boolean to reverse a logical ANDIf you have a Boolean condition combining two clauses with AND, remember your Boolean algebra if you want to negate the statement. Remember to change not only the operator in the individual condition but also the linking “AND” to an “OR.” For example, selecting your high priority products is:
The opposite, to select your low priority products is:
Use Boolean parametersThe report has a Boolean field to indicate if the Customer was active (or not). Our user wanted the report to select Active or Inactive clients. We used a Boolean parameter, and then to make it the question easier to answer, we created a default pick list with True and False and a description against each one. Then the selection formula was a simple {Customer.Active} = {?Active}
Use IMP in your Boolean formulas to find many True values The Imp operator returns TRUE if the two values agree, or the second value is true.
Unlike all the other Boolean operators, this is not a symmetrical operator. The order of the two Boolean values either side of the IMP does matter.
This article is copyrighted by Crystalkeen, Mindconnection, and Chelsea Technologies Ltd. It may be freely copied and distributed as long as the original copyright is displayed and no modifications are made to this material. Extracts are permitted. The names Crystal Reports and Seagate Info are trademarks owned by Business Objects. |
These keywords may have brought you here: boolean logic in crystal reports, boolean conditions, boolean statements, boolean tips, boolean techniques, boolean expressions, boolean tutorials, crystal reports tutorials, crystal reports articles, crystal reports tips, crystal reports tricks, crystal reports techniques, crystal reports information, crystal reports software, crystal reports training
|