{"name":"BIS_fnc_decodeFlags4","title":"BIS fnc decodeFlags4","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_decodeFlags4","revid":373738,"updated":"2025-06-24T18:40:13Z","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 4-state flags (values 0,1,2,3).","syntaxes":[{"syntax":"[encodedFlags, size] call BIS_fnc_decodeFlags4","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 = 225 call BIS_fnc_decodeFlags4; // [1,0,2,3]"]},{"code":["private _decodedFlags = [225, 8] call BIS_fnc_decodeFlags4; // [1,0,2,3,0,0,0,0]"]}],"see_also":["BIS_fnc_encodeFlags4"]}