You can use conditions within other conditions, which means that you can nest wpv-conditional shortcodes.

Checking for different values of a date field only if the field is not empty

In the example below we display different messages depending on the current value in the wpcf-free-consultations-due-date field (which is a date field defined with the Types plugin).

However, there is no need to test the different scenarios if the field is empty. So we wrap the conditions into an additional one one to check if the field has any value set.

Checking for different values of a date field only if the field is not empty
[wpv-conditional if="( $(wpcf-free-consultations-due-date) ne '' )"]
  <div class="special">
    <strong>
Free consultations this week</strong>

    [wpv-conditional if="( $(wpcf-free-consultations-due-date) eq 'TODAY()' )"]
Today is the last chance for free consultations. Contact us for more details.[/wpv-conditional]

    [wpv-conditional if="( $(wpcf-free-consultations-due-date) lt 'TODAY()' )"]
We are sorry but  this offer has expired.[/wpv-conditional]

    [wpv-conditional if="( $(wpcf-free-consultations-due-date) gt 'TODAY()' )"]
Free of charge consultations run until <strong>
[types field="free-consultations-due-date" style="text" format="F j, Y"][/types]</strong>. 
Contact us to make an appointment.[/wpv-conditional]
  </div>
[/wpv-conditional]

Checking for different values of a radio field only if the excerpt is not empty

Supposing you have the gender field defined as a radio field with the Types plugin:

Example consultant
Example consultant

and only some of the consultants provided more information about themselves in the post excerpt, you can display the excerpt conditionally:

If the post excerpt is not empty check the following:

If a consultant’s gender is female -> output: Consultant about herself
If a consultant’s gender is male -> output: Consultant about himself

Checking for different values of a radio field only if the excerpt is not empty
[wpv-conditional if="( '[wpv-post-excerpt]' ne '' )"]
  Consultant about [wpv-conditional if="( $(wpcf-consultant-gender) eq '1' )"]herself[/wpv-conditional] 
[wpv-conditional if="( $(wpcf-consultant-gender) eq '2' )"]himself[/wpv-conditional]
  [wpv-post-excerpt]
[/wpv-conditional]

The above code will output the following (see the screenshot) if the consultant has completed the excerpt field and his gender is male.

Please note that you could achieve the same results using two separate conditions and evaluating more than one expression in one if statement using the AND operator.

Using AND in conditions results in better performance than nesting conditions.

Checking for different values of a radio field only if the excerpt is not empty (if)
[wpv-conditional if="( '[wpv-post-excerpt]' ne '' ) 
AND ( $(wpcf-consultant-gender) eq '1' )"]Consultant about herself: [wpv-post-excerpt] [/wpv-conditional]

[wpv-conditional if="( '[wpv-post-excerpt]' ne '' ) 
AND ( $(wpcf-consultant-gender) eq '2' )"]Consultant about himself: [wpv-post-excerpt] [/wpv-conditional]

Other examples