Title: IF statement
Last modified: September 1, 2016

---

# IF statement

 *  Resolved [l.kovich](https://wordpress.org/support/users/lkovich/)
 * (@lkovich)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/if-statement-8/)
 * Hello all,
    I am importing a CSV file which has data with prices and some of 
   them are zeros (0). I would like to replace those with a text ‘Call for price’.
 * Tried:
    [IF({price[is(‘0’)]})]Call for Price[ELSE]${price[1]}[ENDIF]
 * however it is not working. What am I doing wrong?
    Everthing else is awesome.
   Great plugin. Thanks
 * [https://wordpress.org/plugins/wp-all-import/](https://wordpress.org/plugins/wp-all-import/)

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/if-statement-8/#post-7506115)
 * Hi l.kovich.
 * Here’s how you can do that: [IF({price[.=’0′]})]Call for Price[ELSE]${price[1]}[
   ENDIF]
 *  Thread Starter [l.kovich](https://wordpress.org/support/users/lkovich/)
 * (@lkovich)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/if-statement-8/#post-7506124)
 * Worked perfectly. Thank you.

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

The topic ‘IF statement’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [if statement](https://wordpress.org/support/topic-tag/if-statement/)

 * 2 replies
 * 2 participants
 * Last reply from: [l.kovich](https://wordpress.org/support/users/lkovich/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/if-statement-8/#post-7506124)
 * Status: resolved