choose

Summary

Uses the input value to pick one of the parameter elements.

Usage

choose( value1 [, value2 [, ... ] ] )

Parameters

NameTypeDescriptionRequired
value1 mixed Value of any kind yes
value2 mixed Value of any kind no
... mixed Value of any kind no

Returns

Returns the element specified by the input value

Description

Examples

{0|choose("a","b","c")}

returns "a".

{2|choose("a","b","c")}

returns "c".

Comments

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
    Formatting
    Images
    Logic
       and
       choose
       cond
       eq
       false
       first_set
       ge
       gt
       le
       lt
       ne
       not
       null
       or
       true
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
11:39:23 am
by Balazs Halasy

Last updated

15/02/2004
9:20:08 pm
by Derick Rethans

Authors

Balazs Halasy
Vidar Langseid
Derick Rethans



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.