{"name":"BIS_fnc_taskCompleted","operator":null,"title":"BIS fnc taskCompleted","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_taskCompleted","revid":352054,"updated":"2024-02-01T23:24:34Z","groups":["Tasks"],"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":null,"locality":{"argument":"global","effect":"global","server_exec":false},"exec":null,"description":"Checks if task is completed. \n\n> [!NOTE]\n> See Arma 3: Task Framework for more information.","syntaxes":[{"syntax":"taskID call BIS_fnc_taskCompleted","since":null,"effect":null,"exec":null,"params":[{"name":"taskID","type":"String","optional":false,"default":null,"description":"ID or name of the task","types":["String"],"since":null,"text":"taskID: String - ID or name of the task"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"returns true if task state is either \"SUCCEEDED\", \"FAILED\" or \"CANCELED\". Returns false for all other states and if task does not exist","text":"Boolean - returns true if task state is either \"SUCCEEDED\", \"FAILED\" or \"CANCELED\". Returns false for all other states and if task does not exist"}}],"examples":[{"text":"```sqf\nprivate _completed = \"task_1\" call BIS_fnc_taskCompleted;\n```","code":["private _completed = \"task_1\" call BIS_fnc_taskCompleted;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Task Framework"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Tasks","Functions","Functions: Global Effect","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}