first_set

Summary

Returns the first value which exists.

Usage

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

Parameters

NameTypeDescriptionRequired
value1 mixed Value 1 yes
value2 mixed Value 2 no
...

Returns

First value set.

Description

Returns the first value which is set.

Examples

{let val1="FreeBSD"

    val2="Linux"}

 {first_set( $val0, $val1, $val2 )}

{/let}

Returns "FreeBSD"

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:40:27 am
by Balazs Halasy

Last updated

23/02/2004
4:36:15 pm
by Kåre Køhler Høvik

Authors

Balazs Halasy
Kåre Køhler Høvik



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.