{"name":"ctrlSetChecked","title":"ctrlSetChecked","type":"command","url":"https://community.bistudio.com/wiki/ctrlSetChecked","revid":330383,"updated":"2022-09-04T21:37:19Z","groups":["GUI Control"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Sets checked state of a CT_CHECKBOXES control.","syntaxes":[{"syntax":"control ctrlSetChecked checked","params":[{"name":"control","type":"Control","description":"CT_CHECKBOXES control. If control contain multiple checkboxes, only checkbox with index 0 is queried.","type_expr":"Control"},{"name":"checked","type":"Boolean","description":"true to check, false to uncheck the checkbox","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"checked"}},{"syntax":"control ctrlSetChecked [index, checked]","since":"arma3 1.72","params":[{"name":"control","type":"Control","description":"CT_CHECKBOXES control","type_expr":"Control"},{"name":"index","type":"Number","description":"checkbox index","type_expr":"Number"},{"name":"checked","type":"Boolean","description":"true to check, false to uncheck the checkbox","type_expr":"Boolean"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"[index, checked]"}}],"examples":[{"code":["_control ctrlSetChecked true;"]},{"code":["_control ctrlSetChecked [3, true];"]}],"see_also":["ctrlChecked","cbChecked","cbSetChecked"]}