is_unset

Summary

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

Usage

is_unset( test )

Parameters

NameTypeDescriptionRequired
test any Variable to test. yes

Returns

True if the first (and only) parameter is false. False otherwise.

Description

The is_unset operator can be used to check if a variable is unset. The operator returns true if the first (and only) parameter is false. The operator doesn't take an input parameter.

Examples

{let my_variable=true()}

{is_unset($my_variable)}

{/let}

The example above returns false.

{let my_variable=false()}

{is_unset($my_variable)}

{/let}

The example above 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:36:30 pm
by Balazs Halasy

Last updated

06/02/2004
4:29:15 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.