Framework:IF-Condition: Difference between revisions
From CoPlanner 11
Jump to navigationJump to search
Created page with "==Function== IF(<Condition>,<Statement>,<ElseStatement>); {| cellspacing="1" cellpadding="3" width={{{breite|80%}}} border="1" |- | style=background-..." |
No edit summary |
||
| Line 25: | Line 25: | ||
==Example== | ==Example== | ||
IF(FilterCriteria(PC/KST)>1,HideElement(GuV.copStyle,10),ShowElement(GuV.copStyle,10));<br> | IF(FilterCriteria(PC/KST)>1,HideElement(GuV.copStyle,10),ShowElement(GuV.copStyle,10));<br> | ||
IF(FilterCriteria( | IF(FilterCriteria(Companies)=1,IF(FilterCriteria(PC/KST)>1,HideElement(GuV.Level,0),ShowElement(GuV.Level,0)),); | ||
Revision as of 15:03, 18 November 2010
Function
IF(<Condition>,<Statement>,<ElseStatement>);
| Parameter | Description |
| Condition | Is an expression that returns TRUE or FALSE |
| Statement | The embedded statement(s) to be executed if expression is true. |
| ElseStatement | The embedded statement(s) to be executed if expression is false. |
Result
If expression is true, Statement is executed. If the optional else clause exists and expression evaluates to false, ElseStatement is executed.
Example
IF(FilterCriteria(PC/KST)>1,HideElement(GuV.copStyle,10),ShowElement(GuV.copStyle,10));
IF(FilterCriteria(Companies)=1,IF(FilterCriteria(PC/KST)>1,HideElement(GuV.Level,0),ShowElement(GuV.Level,0)),);