{"ScriptPreparationCode":"var eventsList = {\r\n \u0022groupEnrollmentEvents\u0022: [\u0022Annual Enrollment\u0022, \u0022ACA Annual Enrollment\u0022, \u0022FSA Enrollment\u0022],\r\n \u0022lifeEvents\u0022: [\u00228ad7e596-e78e-4e7f-ac94-8f6933e03363\u0022, \u0022c953fba4-2d3d-46cb-873e-3911e29c7953\u0022, \u00224903c41d-9669-4011-99c6-1f07b080c294\u0022, \u0022b34731e4-0580-45d1-9c41-901bf9175d5c\u0022],\r\n \u0022workEvents\u0022: [\u0022ff68f286-ae60-4f58-9153-408d3c4ebadf\u0022, \u0022df2ce490-ce4b-4872-95a8-a367327b74ce\u0022, \u0022abe7cac3-cf54-4fc2-b67c-7f4badd7b4f7\u0022, \u0022f1586e6c-eefc-43f3-804e-7c452a746bb1\u0022, \u0022d55ff2b7-6038-4b17-a873-1867a0bd78df\u0022, \u002241a7e9ef-621a-414d-8899-55ce296df763\u0022, \u0022134d8370-ade9-4907-94eb-ffcb3debf99e\u0022]\r\n};\r\n\r\nvar eventReasonLookup = [\u00221\u0022, \u00222\u0022];\r\nvar workEvents = [\u00221\u0022];\r\nvar workEvents = [\u00221\u0022, \u00222\u0022, \u00223\u0022];","TestCases":[{"Name":"nested IF","Code":"var resultNested = nestedIf();\r\n\r\nfunction nestedIf(){\r\n return _.size(_.get(eventsList, \u0027groupEnrollmentEvents\u0027, [])) === _.size(_.get(this, \u0027eventReasonsLookUp\u0027, [])) \u0026\u0026\r\n _.size(_.get(eventsList, \u0027workEvents\u0027, [])) === _.size(this.workEvents) \u0026\u0026\r\n _.size(_.get(eventsList, \u0027lifeEvents\u0027, [])) === _.size(this.lifeEvents);\r\n}","IsDeferred":false},{"Name":"cascade if","Code":"var resultCascade = cascadeIf();\r\n\r\nfunction cascadeIf() {\r\n if (_.size(_.get(eventsList, \u0027groupEnrollmentEvents\u0027, [])) !== _.size(_.get(this, \u0027eventReasonsLookUp\u0027, []))) {\r\n return false;\r\n }\r\n if (_.size(_.get(eventsList, \u0027workEvents\u0027, [])) !== _.size(this.workEvents)) {\r\n return false;\r\n }\r\n if (_.size(_.get(eventsList, \u0027lifeEvents\u0027, [])) !== _.size(this.workEvents)) {\r\n return false;\r\n }\r\n return true;\r\n}","IsDeferred":false}]}