Framework:IIF-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
 
(6 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%"
{| cellspacing="1" cellpadding="3" width={{{breite|80%}}}  border="1"
|-{{Tabellentitel}}  
| Parameter
| Description
|-
|-
| style=background-color:#f6f6f6 |'''Parameter'''
|Condition
| style=background-color:#f6f6f6 |'''Beschreibung
|Is an expression that returns TRUE or FALSE
|-
|Bedingung
|Ausdruck, muss True oder False sein
|-
|-
|Statement
|Statement
|Ein Wert, der retourniert wird.
|The embedded statement(s) to be executed if expression is true.
|-
|-
|ElseStatement
|ElseStatement
|Ein Wert, der retourniert wird.
|The embedded statement(s) to be executed if expression is false.
|}
|}
This function belongs to [[:Category:Functions_-_client-side|client-side functions]].


==Ergebnis==
==Return==
Retouniert in Abhängigkeit der Bedingung einen Wert. Kann auch verschachtelt sein.
If expression is true, Statement is returned, if the expression is true, ElseStatement is returned.
 


==Beispiel==
==Example==
IIF('TimeDimFlag([Zeit.ID])'='Y','yyyy','MMM yy'))';
<span {{CoPFormel}}>IIF('TimeDimFlag([Zeit.ID])'='Y','yyyy','MMM yy'))';</span>


__NOEDITSECTION__  
__NOEDITSECTION__  


[[Category:Functions|IIF-Bedingung]]
[[Category:Functions - client-side|IIF-Bedingung]]
[[Category:Functions - client-side|IIF-Bedingung]]
[[de:Framework:IIF-Bedingung]]
[[de:Framework:IIF-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.

Return

If expression is true, Statement is returned, if the expression is true, ElseStatement is returned.

Example

IIF('TimeDimFlag([Zeit.ID])'='Y','yyyy','MMM yy'))';