Title: Nested conditionals?
Last modified: July 25, 2023

---

# Nested conditionals?

 *  Resolved [mlepisto](https://wordpress.org/support/users/mlepisto/)
 * (@mlepisto)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/nested-conditionals/)
 * Hi, I have tried to search for this but haven’t seen much on it. I see that elseif
   isn’t supported, but do nested conditionals work?
 * ex:
 * [if something]
    Output something[else] [if somethingelse] Output somethingelse[/
   if][/if]
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [pdclark](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/nested-conditionals/#post-16920736)
 * No, sorry. Shortcodes are a markup language, not a programming language. See 
   [https://developer.wordpress.org/apis/shortcode/ ](https://developer.wordpress.org/apis/shortcode/ )
   for examples of how to write a custom shortcode that returns your desired output
   using PHP if/else statements.
 *  Thread Starter [mlepisto](https://wordpress.org/support/users/mlepisto/)
 * (@mlepisto)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/nested-conditionals/#post-16922855)
 * Thank you, Paul.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Nested conditionals?’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [conditionals](https://wordpress.org/support/topic-tag/conditionals/)

 * 2 replies
 * 2 participants
 * Last reply from: [mlepisto](https://wordpress.org/support/users/mlepisto/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/nested-conditionals/#post-16922855)
 * Status: resolved