{"name":"BIS_fnc_taskState","operator":null,"title":"BIS fnc taskState","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_taskState","revid":352114,"updated":"2024-02-01T23:25:00Z","groups":["Tasks"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.76"}],"since":{"game":"arma3","name":"Arma 3","version":"0.76"},"arma3_since":"0.76","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns task's state. \n\n> [!NOTE]\n> See Arma 3: Task Framework for more information.","syntaxes":[{"syntax":"taskID call BIS_fnc_taskState","since":null,"effect":null,"exec":null,"params":[{"name":"taskID","type":"String","optional":false,"default":null,"description":"ID of the task","types":["String"],"since":null,"text":"taskID: String - ID of the task"}],"returns":{"type":"String","types":["String"],"description":"state of the task. Can be: - \"AUTOASSIGNED\" - \"ASSIGNED\" - \"CREATED\" - \"SUCCEEDED\" - \"FAILED\" - \"CANCELED\"","text":"String - state of the task. Can be:\n- \"AUTOASSIGNED\"\n- \"ASSIGNED\"\n- \"CREATED\"\n- \"SUCCEEDED\"\n- \"FAILED\"\n- \"CANCELED\""}}],"examples":[{"text":"```sqf\n\"task_1\" call BIS_fnc_taskState;\n```","code":["\"task_1\" call BIS_fnc_taskState;"]},{"text":"```sqf\n[\"task_1\"] call BIS_fnc_taskState;\n```","code":["[\"task_1\"] call BIS_fnc_taskState;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Task Framework"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Tasks","Functions","Introduced with Arma 3 version 0.76"],"docblock":null,"filled_from_docblock":[]}