{"name":"ctrlSetChecked","operator":null,"title":"ctrlSetChecked","type":"command","url":"https://community.bistudio.com/wiki/ctrlSetChecked","revid":330383,"updated":"2022-09-04T21:37:19Z","groups":["GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sets checked state of a CT_CHECKBOXES control.","syntaxes":[{"syntax":"control ctrlSetChecked checked","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":"CT_CHECKBOXES control. If control contain multiple checkboxes, only checkbox with index 0 is queried.","types":["Control"],"since":null,"text":"control: Control - CT_CHECKBOXES control. If control contain multiple checkboxes, only checkbox with index 0 is queried."},{"name":"checked","type":"Boolean","optional":false,"default":null,"description":"true to check, false to uncheck the checkbox","types":["Boolean"],"since":null,"text":"checked: Boolean - true to check, false to uncheck the checkbox"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"checked","types":["Boolean"]}},{"syntax":"control ctrlSetChecked [index, checked]","since":"arma3 1.72","effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":"CT_CHECKBOXES control","types":["Control"],"since":null,"text":"control: Control - CT_CHECKBOXES control"},{"name":"index","type":"Number","optional":false,"default":null,"description":"checkbox index","types":["Number"],"since":null,"text":"index: Number - checkbox index"},{"name":"checked","type":"Boolean","optional":false,"default":null,"description":"true to check, false to uncheck the checkbox","types":["Boolean"],"since":null,"text":"checked: Boolean - true to check, false to uncheck the checkbox"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"[index, checked]","types":["Array"]}}],"examples":[{"text":"```sqf\n_control ctrlSetChecked true;\n```","code":["_control ctrlSetChecked true;"]},{"text":"```sqf\n_control ctrlSetChecked [3, true];\n```","code":["_control ctrlSetChecked [3, true];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlChecked","cbChecked","cbSetChecked"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control","Introduced with Arma 3 version 0.50","Scripting Commands"]}