Renders its contents only if a certain condition is met. These conditions can be:
if a specified Vae path has a value (as opposed to being blank),
if a specified Vae path has a specific value,
if the total number of entries in the current collection matches a specific numeric value,
if a request (GET or POST) parameter is set, or
if the ID of the current entry matches a specific value or value at a path.
One of the following:
path- the path to the Vae value you want to ensure is set. If this value is set, the contents of the tag will be rendered. Uses VaeQL syntax.
param- name of a request (GET or POST) parameter. If this parameter is set, the contents of the tag will be rendered.
total_items- numeric value to be compared to the total number of entries in the current collection. If the number of entries in the current collection is equal to this number, the contents of the tag will be rendered.
id- value to be compared to the ID of the current entry. If this value begins with a “$”, it will be treated as a request parameter. If it is not numeric, it will be treated as a path. If the ID matches, the contents of the tag will be rendered.
is- if provided, the value of the specified
parammust be equal to this value for the condition to be considered true and the contents rendered.
You may provide a
<v:else> tag after this tag to specify
HTML to render if there is no value set for that path.
Only display the special notice if something is there:
Kevin is awesome, so he gets an image to represent his name:
Switch based on user input:
Promote special offers: