Title: If statement question
Last modified: August 22, 2016

---

# If statement question

 *  Resolved [dkrasko](https://wordpress.org/support/users/dkrasko/)
 * (@dkrasko)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/if-statement-question/)
 * Hows the coffee? I sent a 100 euro donation. I have a question, if i want to 
   list more than on Id in this statement, is it possible?
 * [eme_if tag=’#_EVENTID’ value=’10’]
 * Contains would not work since 1 and 10 and 11 would all return true if I wanted
   1.
    Thanks
 * [https://wordpress.org/plugins/events-made-easy/](https://wordpress.org/plugins/events-made-easy/)

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

 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/if-statement-question/#post-5835029)
 * That was one very good coffee,tanks for that. The animal shelter will be pleased!(
   I donate the money I receive to a good cause).
    Concerning your question: what
   are you trying to accomplish?
 *  Thread Starter [dkrasko](https://wordpress.org/support/users/dkrasko/)
 * (@dkrasko)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/if-statement-question/#post-5835051)
 * I want to turn off the RSVP for my events and replace each event with a “FOLLOW”
   or “NOT INTERESTED” button. I was then going to keep track of the user’s choice
   for each event in a table. So I would be able to get a list of eventid(s) a user
   chose “FOLLOW” or “NOT INTERESTED” and build filters and conditions like you 
   do as follows for category ID only use “event ID”
 * category limits the events shown to those of a certain category ID. You can also
   use OR and AND for multiple categories: “1,3” (category 1 OR 3) or “1+3″ (category
   1 AND 3)
 * I want to be able to show for my staff what events they are following, or a list
   of what they are not interested in. Also use the same filter on a calendar feeds.
 * I can write up a detail of what I would like in a plug in if you are interested
   in writing a plugin for me. More $$ for the shelter and coffee. haha
    Thanks
 *  Thread Starter [dkrasko](https://wordpress.org/support/users/dkrasko/)
 * (@dkrasko)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/if-statement-question/#post-5835096)
 * Would this filter effect only list views of events or would it also effect ical
   feeds and month calendar views?
 * eme_event_list_filter (1 parameter: array of events, return value should be modified
   array)
 * Forgive me, I’m doing a lot of reading on WordPress plugins trying to come up
   to speed. Maybe you can tell me if I’m going down the wrong road. Using the above
   filter in my custom php, would I be able to accomplish my last post (FOLLOW/NOT
   INTERESTED) by using eme_event_list_filter with an array of event IDs?
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/if-statement-question/#post-5835111)
 * Indeed, it would impact the calendar also. You might limit that by setting the
   pages indide yor filter, but that will be difficult to maintain.
    I could add
   a new function “inlist” so you could set which id’s would need to match. For 
   example: [eme_if tag=’#_EVENTID’ inlist=’10,35,45,12,78′] Would that help you?
 *  Thread Starter [dkrasko](https://wordpress.org/support/users/dkrasko/)
 * (@dkrasko)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/if-statement-question/#post-5835146)
 * After reading more, I think the **eme_event_list_filter** will work for me as
   long as it works the way I understand it.
    Lets say I have a page ‘myevents’ 
   with any of these shortcodes and with any of the current parameters offered.
 * [eme_events scope=all limit=0 , template_id=2]
    [eme_calendar full=1]
 * If my function using eme_event_list only returns success if the eventID is successful(
   eventID is in my list of IDs to show), with a little coding I can accomplish 
   showing only Events on the page(s) from a list of EventIDs i check against?
 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/if-statement-question/#post-5835148)
 * Sure, a little php to loop through the event id’s and unset the ones you don’t
   want … print_r will help you debug 🙂
 *  Thread Starter [dkrasko](https://wordpress.org/support/users/dkrasko/)
 * (@dkrasko)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/if-statement-question/#post-5835192)
 * Franky – using the filter worked like a charm! Thanks for the great application.
   This issue is resolved.

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

The topic ‘If statement question’ is closed to new replies.

 * ![](https://ps.w.org/events-made-easy/assets/icon-256x256.png?rev=1856035)
 * [Events Made Easy](https://wordpress.org/plugins/events-made-easy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-made-easy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-made-easy/)
 * [Active Topics](https://wordpress.org/support/plugin/events-made-easy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-made-easy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-made-easy/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [dkrasko](https://wordpress.org/support/users/dkrasko/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/if-statement-question/#post-5835192)
 * Status: resolved