Getting a string not closed properly error

Doing some work in SugarCRM7 and getting an error when trying to use this formula. It says I’m not closing it properly, but can’t figure it out.
Any help would be awesome.

ifElse(
and(
equal(related($contracts,“commodity_c”),“YC”)
isAfter(related($contracts,“deliverydate_c”),9/31/2014)
isBefore(related($contracts,“deliverydate_c”),10/1/2015)
related($contracts,“scheduled_c”),0)

That is just not valid code. To start with there is no such thing as ifElse. The whole codeblock does not make sense.

Sponsor our Newsletter | Privacy Policy | Terms of Service