eZpedia : The Free eZ Publish CMS Documentation Encyclopedia

Snippet: Template Logic to test if a template variable is defined

This is a Stub article. Help the eZ Publish community by expanding it!

Question

How would one test if a template variable is defined?

Solution

You can use the is_set operator: https://ez.no/doc/ez_publish/techn...rs/variable_and_type_handling/is_set

External reference

Article provided by eZpedia

All text is available under the terms of the GNU Free Documentation License

Powered by eZ Publish Community Project 4.2011

Hosted by Swiss eZ Publish partner YMC