Title: ELSE option
Last modified: August 19, 2019

---

# ELSE option

 *  [clipper87](https://wordpress.org/support/users/clipper87/)
 * (@clipper87)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/else-option/)
 * Great plugin! I’d love to see a solution that provides an ELSE option.
 * Here’s what I’m doing
 *     ```
       [ifurlparam param="p" is="ABC"]
       String A
       [/ifurlparam]
   
       [ifurlparam param="p" is="DEF"]
       String B
       [/ifurlparam]
   
       [ifurlparam param="p" empty="1"]No parameter[/ifurlparam]
       ```
   
 * If the URL parameter “p” is ABC or DEF it shows string A or B, if “p” is not 
   provided it shows a “No parameter” message
 * I’d need a solution in case an invalid parameter is entered
 * So instead of
 *     ```
       [ifurlparam param="p" empty="1"]No parameter[/ifurlparam]
       ```
   
 * I’d love to see something like for the last line of code
 *     ```
       [ifurlparam param="p" empty="1",else]No parameter,Invalid parameter[/ifurlparam]
       ```
   
 * Thx!

The topic ‘ELSE option’ is closed to new replies.

 * ![](https://ps.w.org/url-params/assets/icon-128x128.png?rev=979780)
 * [URL Params](https://wordpress.org/plugins/url-params/)
 * [Support Threads](https://wordpress.org/support/plugin/url-params/)
 * [Active Topics](https://wordpress.org/support/plugin/url-params/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/url-params/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/url-params/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [clipper87](https://wordpress.org/support/users/clipper87/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/else-option/)
 * Status: not resolved