{"ScriptPreparationCode":"function returnName(name) {\r\n if (name === \u00271Y\u0027) {\r\n return \u0027oneYearRor\u0027;\r\n }\r\n if (name === \u00273Y\u0027) {\r\n return \u0027threeYearRor\u0027;\r\n }\r\n if (name === \u00275Y\u0027) {\r\n return \u0027fiveYearRor\u0027;\r\n }\r\n if (name === \u002710Y\u0027) {\r\n return \u0027tenYearRor\u0027;\r\n }\r\n if (name === \u0027SI\u0027) {\r\n return \u0027sinceInceptionRor\u0027;\r\n }\r\n if (name === \u0027YTD\u0027) {\r\n return null;\r\n }\r\n\r\n};\r\n\r\nfunction switchStatement(name) {\r\n\tswitch(name) {\r\n case \u00271Y\u0027: return \u0027oneYearRor\u0027;\r\n case \u00273Y\u0027: return \u0027threeYearRor\u0027;\r\n case \u00275Y\u0027: return \u0027fiveYearRor\u0027;\r\n case \u002710Y\u0027: return \u0027tenYearRor\u0027;\r\n case \u0027SI\u0027: return \u0027sinceInceptionRor\u0027;\r\n default: return null;\r\n\t}\r\n}","TestCases":[{"Name":"If else statement","Code":"returnName(\u00271Y\u0027)\r\nreturnName(\u00273Y\u0027)\r\nreturnName(\u00275Y\u0027)\r\nreturnName(\u002710Y\u0027)\r\nreturnName(\u0027SI\u0027)\r\nreturnName(\u0027YTD\u0027)","IsDeferred":false},{"Name":"Switch statement","Code":"switchStatement(\u00271Y\u0027)\r\nswitchStatement(\u00273Y\u0027)\r\nswitchStatement(\u00275Y\u0027)\r\nswitchStatement(\u002710Y\u0027)\r\nswitchStatement(\u0027SI\u0027)\r\nswitchStatement(\u0027YTD\u0027)","IsDeferred":false}]}