• News
  • Developer information
  • Projects & contributions
  • Forum
  • Issue tracker
  • Open Funding
  • Security
  • User groups
  • Support
  • Store
  • Company

  • Path

    ez.no / exponential / documentation / development / libraries / ez template / operators / control structure handling


    Control structure handling

    These documentation pages are no longer maintained. Please visit the new documentation site.

    Control structure handling

    cond

    Evaluates clauses and returns the value of the first clause whose condition is true.
    Pairs of parameters are treated as clauses where the first is the condition and the second is the body.
    The last clause may have one parameter only in which case it is used as condition and body. E.g.

    {cond($b|ne(0),div($a,$b),0)} returns the result of $a/$b if $b is not 0, or 0 if it is.

    first_set

    Returns the first value which exists, this is useful if you want to make sure that you always have a value to work with,
    since you can put a constant as the last parameter and constants always exist. E.g.

    {first_set($a,$b,$c," ")} returns " " if none of the variables are set.x

    Comments

    Contents

    Development

    Extensions
    Exponential datamodel
    Exponential tuning and stability
    Importing attribute data
    Kernel
    Libraries
        eZ xml
        eZ db
        eZ i18n
        eZ soap
        eZ template
           Basics
           Functions
           Operators
              Data fetch
              String handling
              Type handling
              Logical handling
              Arithmetics
              Control structure handling
              Array handling
              Image handling
              Miscellaneous
        eZ webdav
    Scripting
    Standards
    System overview
    Test Suite
    Using Doxygen to create API documenta...


    Created

    10/07/2003
    2:39:56 pm
    by Jan Borsodi

    Last updated

    10/07/2003
    2:39:56 pm
    by Jan Borsodi

    Authors

    Jan Borsodi



    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.