Using Deluge, how to loop through all Open Meetings?

Using Deluge, how to loop through all Open Meetings?

Hi

I need to loop through all Open meetings. My code is:

  1. getMeetings = zoho.crm.getRelatedRecords("Events","Deals",deal.get("id"));
  2. for each  meeting in getMeetings
  3. {
  4. // do something
  5. }

However, this loops through all Meetings (Open and Closed). Ive tried something like:

  1. if(meeting.get("Status") == "Open")
  2.   {
  3.     // Do something with the open meeting
  4.   }

But that doesnt work. How can I do this please?
Thanks