Framework:IF-Condition: Difference between revisions

From CoPlanner 11
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
==[[Framework:Functions|Function]]==
==[[Framework:Functions|Function]]==


IF(<Condition>,<Statement>,<ElseStatement>);
<span {{CoPFormel}}>IF(<Condition>,<Statement>,<ElseStatement>);</span>
 


{| class="wikitable" width="80%"
{| class="wikitable" width="80%"
Line 18: Line 17:
|The embedded statement(s) to be executed if expression is false.
|The embedded statement(s) to be executed if expression is false.
|}
|}
This function belongs to [[:Category:Functions_-_client-side|client-side functions]].


==Result==
==Result==
If expression is true, Statement is executed. If the expression evaluates to false, ElseStatement is executed.
If expression is true, Statement is executed. If the expression evaluates to false, ElseStatement is executed.


==Example==
==Example==
IF(FilterCriteria(PC/KST)>1,HideElement(GuV.copStyle,10),ShowElement(GuV.copStyle,10));<br>
<span {{CoPFormel}}>IF(FilterCriteria(PC/KST)>1,HideElement(GuV.copStyle,10),ShowElement(GuV.copStyle,10));<br>
IF(FilterCriteria(Companies)=1,IF(FilterCriteria(PC/KST)>1,HideElement(GuV.Level,0),ShowElement(GuV.Level,0)),);
IF(FilterCriteria(Companies)=1,IF(FilterCriteria(PC/KST)>1,HideElement(GuV.Level,0),ShowElement(GuV.Level,0)),);</span>




__NOEDITSECTION__  
__NOEDITSECTION__  


[[Category:Functions|IF-Bedingung]]
[[Category:Functions - client-side|IF-Bedingung]]
[[Category:Functions - client-side|IF-Bedingung]]
[[de:Framework:IF-Bedingung]]
[[de:Framework:IF-Bedingung]]

Latest revision as of 08:50, 24 May 2012

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.

This function belongs to client-side functions.

Result

If expression is true, Statement is executed. If the 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)),);