{"ScriptPreparationCode":null,"TestCases":[{"Name":"11","Code":"const table = {userSeatOptions: {rebuySettings: {target: 100, threshold: 0}}}\r\nfunction setRebuyStatus() {\r\n if (table.userSeatOptions?.rebuySettings?.target \u003E 0) {\r\n if (table.userSeatOptions.rebuySettings.threshold \u003E 0) {\r\n return \u0027THRESHOLD\u0027\r\n } else {\r\n return \u0027WHEN_ZERO\u0027\r\n }\r\n } else {\r\n return \u0027NEVER\u0027\r\n }\r\n}\r\nconsole.log(setRebuyStatus())","IsDeferred":false},{"Name":"22","Code":"const table = {userSeatOptions: {rebuySettings: {target: 100, threshold: 0}}}\r\nfunction setRebuyStatus() {\r\nconst { rebuySettings } = table.userSeatOptions || {};\r\n if (rebuySettings \u0026\u0026 rebuySettings.target \u003E 0) {\r\n if (rebuySettings.threshold \u003E 0) {\r\n return \u0027THRESHOLD\u0027\r\n } else {\r\n return \u0027WHEN_ZERO\u0027\r\n }\r\n } else {\r\n return \u0027NEVER\u0027\r\n }\r\n}\r\nconsole.log(setRebuyStatus())","IsDeferred":false}]}