Framework:Choose: Difference between revisions
From CoPlanner 11
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
<span {{CoPFormel}}>Choose(<Index>,<Value 1 to n>)</span> | <span {{CoPFormel}}>Choose(<Index>,<Value 1 to n>)</span> | ||
{| class="wikitable" width="80%" | {| class="wikitable" width="80%" | ||
| Line 15: | Line 14: | ||
|Returned value according to the index. | |Returned value according to the index. | ||
|} | |} | ||
This function belongs to [[:Category:Functions_-_client-side|client-side functions]]. | |||
==Result== | ==Result== | ||
Returns the value 1 to n according to the index. | Returns the value 1 to n according to the index. | ||
==Example== | ==Example== | ||
<span {{CoPFormel}}>FKT_Choose(FKT_GetLevel(‘PC/KST’,1),Green, Blue, Red)</span><br> | <span {{CoPFormel}}>FKT_Choose(FKT_GetLevel(‘PC/KST’,1),Green, Blue, Red)</span><br> | ||
Result is green. | Result is green. | ||
Latest revision as of 08:43, 24 May 2012
Function
Choose(<Index>,<Value 1 to n>)
| Parameter | Description |
| Index | Name of dimension |
| Value 1 to n | Returned value according to the index. |
This function belongs to client-side functions.
Result
Returns the value 1 to n according to the index.
Example
FKT_Choose(FKT_GetLevel(‘PC/KST’,1),Green, Blue, Red)
Result is green.