Title: IF statement help
Last modified: March 30, 2017

---

# IF statement help

 *  Resolved [cybnex](https://wordpress.org/support/users/cybnex/)
 * (@cybnex)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/if-statement-help/)
 * What a wonderful plugin. Wish I knew about it a month ago or so.
 * I’m not a very good coder and am trying to use an IF statement. The help/examples
   on [http://www.wpallimport.com/documentation/advanced/if-statements/](http://www.wpallimport.com/documentation/advanced/if-statements/)
   and elsewhere on the web haven’t been helpful enough for me.
 * I’m trying to hide some content if a cell is empty. For instance below; if any
   of the below cells; tuotemerkki/ean/sap are empty then that whole line should
   be hidden.
 * **Tuotemerkki:** {tuotemerkki[1]}
    **EAN-numero:** {ean[1]} **SAP-numero:** {
   sap[1]}
 * Thanks in advance.

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/if-statement-help/#post-8980248)
 * Hi [@cybnex](https://wordpress.org/support/users/cybnex/)
 * Sure, you can do this like so:
 *     ```
       [IF({tuotemerkki[1][.=""]})][ELSE]Tuotemerkki: {tuotemerkki[1]}[ENDIF]<br>
       [IF({ean[1][.=""]})][ELSE]EAN-numero: {ean[1]}[ENDIF]<br>
       [IF({sap[1][.=""]})][ELSE]SAP-numero: {sap[1]}[ENDIF]
       ```
   
 *  Thread Starter [cybnex](https://wordpress.org/support/users/cybnex/)
 * (@cybnex)
 * [9 years ago](https://wordpress.org/support/topic/if-statement-help/#post-8998356)
 * Thanks a million!
 *  I actually re-read your documentation and realized that by myself. Yeahh, this
   plugin sure beats entering in stuff by hand 😀

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

The topic ‘IF statement help’ 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

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

 * 2 replies
 * 2 participants
 * Last reply from: [cybnex](https://wordpress.org/support/users/cybnex/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/if-statement-help/#post-8998356)
 * Status: resolved