productVersion: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
(Fixed faulty example 3) |
||
Line 31: | Line 31: | ||
|x2= <sqf>hint str productVersion; // ["Arma 3", "Arma3", 137, 128764, "Development", false, "Windows"]</sqf> | |x2= <sqf>hint str productVersion; // ["Arma 3", "Arma3", 137, 128764, "Development", false, "Windows"]</sqf> | ||
|x3= <sqf>format ["%1.%2", productVersion select 2 * 0.01 toFixed 2, productVersion select 3]; // returns version e.g.: "2.00.146773"</sqf> | |x3= <sqf> format ["%1.%2", (productVersion select 2) * 0.01 toFixed 2, productVersion select 3]; // returns version e.g.: "2.00.146773"</sqf> | ||
|seealso= [[supportInfo]] [[requiredVersion]] | |seealso= [[supportInfo]] [[requiredVersion]] | ||
}} | }} |
Latest revision as of 18:28, 17 October 2023
Description
- Description:
- Returns the product's friendly name, identifier, version and build number.
- Groups:
- System
Syntax
- Syntax:
- productVersion
- Return Value:
- Array in format [name, nameShort, version, build, branch, isModded, platform, architecture]:
- name: String - product name
- nameShort: String - product short name
- version: Number - product version number
- build: Number - product build number
- 1.00 branch: String - product branch, can be "Stable", "Development", "Diag" or "Profile"
- 1.00 isModded: Boolean - is the product running with mods (true) or vanilla (false)
- 1.00 platform: String - can be "Windows", "Linux" or "OSX"
- 1.68 architecture: String - "x64" for 64bit or "x86" for 32bit
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- supportInfo requiredVersion
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note