Set & Empty

Is Set

Checks to see if a given variable is set. For example, is_set can be used to check and see if a user variable is set, such as active, and execute functions accordingly.

Set


Usage

Shortcode:

[is_set]

 

Parameters:

ParametersDescription
[value] (required) Value of the object set

 

Code Example:

[is_set value="{{image}}"]
  <img alt="{{event_title}}" class="img-thumbnail img-responsive" src="[get_asset_file_url id={{image}}]"> 
[/is_set]

Is Empty

Checks to see if a given variable is empty. For example, is_empty can be used to check and see if a user variable is empty, and execute functions accordingly.

Set


Usage

Shortcode:

[is_empty]

 

Parameters:

[value] (required) = Value of the object comparing to the one set

 

Code Example:

[is_empty value="{{image}}"]
  <img alt="{{event_title}}" class="img-thumbnail img-responsive" src="/core/fileparse.php/268/urlt//placehold.it/360x245"> 
[/is_empty]

0 Comments

Please sign in to leave a comment.
Have more questions? Submit a request