Title: jezza33's Replies | WordPress.org

---

# jezza33

  [  ](https://wordpress.org/support/users/jezza33/)

 *   [Profile](https://wordpress.org/support/users/jezza33/)
 *   [Topics Started](https://wordpress.org/support/users/jezza33/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jezza33/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jezza33/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jezza33/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jezza33/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jezza33/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jazzy Forms] IF and Radio Button Function](https://wordpress.org/support/topic/if-and-radio-button-function/)
 *  [jezza33](https://wordpress.org/support/users/jezza33/)
 * (@jezza33)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/if-and-radio-button-function/#post-3374271)
 * I don’t know if this will help anyone who (like me) has been struggling for hours
   to get the IF function in emails to perform based on Radio Button check / uncheck
   button status / values.
 * I have a facility booking page where to select a Morning booking, I have a radio
   button with the ID morningall; the unchecked value of morningall is 0 (zero),
   and the checked value is 15.
 * First off I have had to create a non-visible output element morningallfmt – whose
   value was morningall – because no amount of experimenting allowed me to get anything
   working by coding IF(morningall=15, “This is booked”,”This is not booked”) to
   function.
 * To my annoyance, coding IF(morningallfmt=15, etc etc did not work either.
 * My breakthough (I think, because it works..) was to resort to sticking the IF
   expression within parentheses (…) placed within a double curly {{……}} place holder,
   so that the code is
 * {{(IF(morningallfmt=15, “This is booked”, “This is not booked”))}}
 * – and result! Works fine!
 * You really have to keep a clear head about which () parentheses are ENCLOSING
   the expression, and which are PART of the expresion
 * Hope this helps a few people, and Igor, if you’re watching and have a shorter
   way to get here (like did I miss something obvious in the Functions Reference?)–
   I’ll be very interested!

Viewing 1 replies (of 1 total)