<< loadunit << | Table Of Contents | >> logicalflagexpression >> |
Keyword | logicalexpression |
Purpose | A logical expression is a combination of operands and mathematical operations. The final result of a logical expression is always true or false. Logical expressions are used the reduce the properties in a report to a certain subset or to select alternatives for the cell content of a table. When the logical expression is used with attributes like hidetask or hideresource and evaluates to true for a certain property, this property is hidden or rolled-up in the report. Operands can be previously declared flags, built-in functions, property attributes (specified as scenario.attribute) or another logical expression. When you combine logical operations to a more complex expression, the operators are evaluated from left to right. An operand can also be just a number. 0 evaluates to false, all other numbers to true. The logical expression can also be the special constants Date attributes needs special attention. Attributes like maxend can be undefined. To use such an attribute in a comparison, you need to test for the validity first. E. g. to compare the end date of the |
|
Syntax | @ (all | none) |
|
Arguments | none | |
Context | Global scope | |
See also | functions |
taskreport "LeaveTasks" { hidetask isleaf() sorttasks id.up # not 'tree' to really hide parent tasks } taskreport "Overruns" { hidetask isvalid(plan.maxend) & (plan.end > plan.maxend) }
<< loadunit << | Table Of Contents | >> logicalflagexpression >> |