{"name":"productVersion","operator":null,"title":"productVersion","type":"command","url":"https://community.bistudio.com/wiki/productVersion","revid":377698,"updated":"2026-01-02T09:03:25Z","groups":["System"],"status":"ok","replaced_by":[],"games":[{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.62"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.62"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the product's friendly name, identifier, version and build number.\n\n> [!NOTE]\n> **Arma 3:** The command has been upgraded to also returns branch identifier, whether or not the game was launched using mods, the platform and the architecture.","syntaxes":[{"syntax":"productVersion","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":"Array with [name, nameShort, version, buildNumber, buildType, isModded, platform, architecture, steamBranchName]","types":["Array"],"description":"name: String - product name - nameShort: String - product short name - version: Number - product version number - buildNumber: Number - product build number - Arma 3 v1.00 buildType: String - build type, can be `\"Stable\"`, `\"Development\"`, `\"Diag\"` or `\"Profile\"` - Arma 3 v1.00 isModded: Boolean - is the product running with mods (true) or vanilla (false) - Arma 3 v1.00 platform: String - can be `\"Windows\"`, `\"Linux\"` or `\"OSX\"` - Arma 3 v1.68 architecture: String - `\"x64\"` for 64bit or `\"x86\"` for 32bit - Arma 3 v2.20 steamBranchName: String - `\"\"` (for default/public branch), `\"profiling\"` or `\"development\"`","text":"Array with [name, nameShort, version, buildNumber, buildType, isModded, platform, architecture, steamBranchName]\n- name: String - product name\n- nameShort: String - product short name\n- version: Number - product version number\n- buildNumber: Number - product build number\n- Arma 3 v1.00 buildType: String - build type, can be `\"Stable\"`, `\"Development\"`, `\"Diag\"` or `\"Profile\"`\n- Arma 3 v1.00 isModded: Boolean - is the product running with mods (true) or vanilla (false)\n- Arma 3 v1.00 platform: String - can be `\"Windows\"`, `\"Linux\"` or `\"OSX\"`\n- Arma 3 v1.68 architecture: String - `\"x64\"` for 64bit or `\"x86\"` for 32bit\n- Arma 3 v2.20 steamBranchName: String - `\"\"` (for default/public branch), `\"profiling\"` or `\"development\"`"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\nhint str productVersion; // would return [\"Arma 2 OA\", \"arma2oa\", 162, 95208] on Arma 2 OA 1.62.95208\n```","code":["hint str productVersion; // would return [\"Arma 2 OA\", \"arma2oa\", 162, 95208] on Arma 2 OA 1.62.95208"]},{"text":"```sqf\nhint str productVersion; // [\"Arma 3\", \"Arma3\", 137, 128764, \"Development\", false, \"Windows\"]\n```","code":["hint str productVersion; // [\"Arma 3\", \"Arma3\", 137, 128764, \"Development\", false, \"Windows\"]"]},{"text":"```sqf\nformat [\"%1.%2\", (productVersion select 2) * 0.01 toFixed 2, productVersion select 3]; // returns version e.g.: \"2.00.146773\"\n```","code":["format [\"%1.%2\", (productVersion select 2) * 0.01 toFixed 2, productVersion select 3]; // returns version e.g.: \"2.00.146773\""]},{"text":"```sqf\nproductVersion params [\"_name\", \"_nameShort\", \"_version\", \"_buildNumber\", \"_buildType\", \"_isModded\", \"_platform\", \"_architecture\", \"_steamBranchName\"];\n```","code":["productVersion params [\"_name\", \"_nameShort\", \"_version\", \"_buildNumber\", \"_buildType\", \"_isModded\", \"_platform\", \"_architecture\", \"_steamBranchName\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["supportInfo","requiredVersion"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: Scripting Commands","Command Group: System","Introduced with Arma 2: Operation Arrowhead version 1.62","Scripting Commands","Take On Helicopters: Scripting Commands"]}