{"name":"BIS_fnc_decodeFlags8","title":"BIS fnc decodeFlags8","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_decodeFlags8","revid":373739,"updated":"2025-06-24T19:02:20Z","groups":["Bitwise"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Decodes a single scalar into array of unique 8-state flags (values 0,1,2,3,4,5,6,7).","syntaxes":[{"syntax":"[encodedFlags, size] call BIS_fnc_decodeFlags8","params":[{"name":"encodedFlags","type":"Number","description":"non-decimal number between 0 and 16777215","type_expr":"Number"},{"name":"size","type":"Number","optional":true,"default":"-1","description":"output size. Size -1 means output will not be resized","type_expr":"Number","text":"size: Number - (Optional, default -1) output size. Size -1 means output will not be resized"}],"returns":{"type":"Number","type_expr":"Number","description":"decoded flags"}}],"examples":[{"code":["private _decodedFlags = 4311 call BIS_fnc_decodeFlags8; // [7,2,3,0,1]"]},{"code":["private _decodedFlags = [4311, 8] call BIS_fnc_decodeFlags8; // [7,2,3,0,1,0,0,0]"]}],"see_also":["BIS_fnc_encodeFlags8"]}