Title: Having trouble with if function
Last modified: August 20, 2016

---

# Having trouble with if function

 *  [webdocdisain](https://wordpress.org/support/users/webdocdisain/)
 * (@webdocdisain)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/having-trouble-with-if-function/)
 * i have a form that calculates all services together
 * IF(services>640, maxprice, servicefees, IF(services<64, minprice, servicefees))
 * like so what i want that if the fees is less then 64 then it shows minprice if
   they are bigger than 64 they show servicefees together but not more than 640
 * [http://wordpress.org/extend/plugins/jazzy-forms/](http://wordpress.org/extend/plugins/jazzy-forms/)

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

 *  Thread Starter [webdocdisain](https://wordpress.org/support/users/webdocdisain/)
 * (@webdocdisain)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/having-trouble-with-if-function/#post-3357559)
 * sorry for duplicate
 *  [raulelenes](https://wordpress.org/support/users/raulelenes/)
 * (@raulelenes)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/having-trouble-with-if-function/#post-3358016)
 * I think this will work for you:
 * IF(services<64,minprice,IF(AND(services>64,services<640),servicefees,maxprice))

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

The topic ‘Having trouble with if function’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jazzy-forms_dac291.svg)
 * [Jazzy Forms](https://wordpress.org/plugins/jazzy-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jazzy-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jazzy-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/jazzy-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jazzy-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jazzy-forms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [raulelenes](https://wordpress.org/support/users/raulelenes/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/having-trouble-with-if-function/#post-3358016)
 * Status: not resolved