{"name":"diag_enabled","operator":null,"title":"diag enabled","type":"command","url":"https://community.bistudio.com/wiki/diag_enabled","revid":369346,"updated":"2024-09-03T18:43:02Z","groups":["Diagnostic"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":"diag","locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Checks whether specific diagnostic mode is activated.","syntaxes":[{"syntax":"diag_enabled mode","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"String","optional":false,"default":null,"description":"see Arma 3: Diagnostics Exe","types":["String"],"since":null,"text":"mode: String - see Arma 3: Diagnostics Exe"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true when enabled, false when disabled","text":"Boolean - true when enabled, false when disabled"},"form":"unary","operator":null,"left":null,"right":{"text":"mode","types":["String"]}}],"examples":[{"text":"```sqf\n\"Animation\" diag_enable true;\ndiag_enabled \"Animation\"; // returns true\n```","code":["\"Animation\" diag_enable true;\ndiag_enabled \"Animation\"; // returns true"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Diagnostics Exe","diag_toggle","diag_enable"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Arma 3: Scripting Commands: Diagnostic Branch","Command Group: Diagnostic","Introduced with Arma 3 version 1.00","Scripting Commands"]}