{"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\n const target = table.userSeatOptions?.rebuySettings?.target;\r\n const threshold = table.userSeatOptions?.rebuySettings?.threshold;\r\n if (target \u003E 0) {\r\n if (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}]}