is_set

Summary

Returns true if the target variable is set (got value).

Usage

is_set( test )

Parameters

NameTypeDescriptionRequired
test any Variable to test. yes

Returns

true if the target variable is non-false; false otherwise.

Description

This operator simply checks the parameter. If the value of the parameter is a non-false value (meaning that it is set), the operator returns true. Otherwise false is returned.

Examples

{is_set( $whatever )}

Returns false as long as whatever hasn't been declared and given a non-false value.

{let whatever="We need some more fuel!"}

{is_set( $whatever )}

{/let}

Returns true.

Comments

log in or create a user account to comment.

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
       float
       get_class
       get_type
       count
       int
       is_array
       is_boolean
       is_class
       is_float
       is_integer
       is_null
       is_numeric
       is_object
       is_set
       is_string
       is_unset
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
1:35:56 pm
by Balazs Halasy

Last updated

06/02/2004
3:29:48 pm
by Balazs Halasy

Authors

Balazs Halasy



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.