Arma 3 Scripting

requiredVersion

  • Arma 3 v0.50
  • First in Operation Flashpoint v1.21

Command · Markdown · JSON · original wiki page

Description

Check if version of application is available. If the current version is older than the required one, a warning message is shown and false is returned.

Version of format Major.Minor, e.g. 1.30

Syntax

requiredVersion version

Parameters:

Returns: Boolean

Examples

Example 1

if !(requiredVersion "1.09") exitWith {};

See also

productVersion · supportInfo

Community notes

Kronzky

If the script contains a command that was introduced after the required version, it will still generate a syntax error, even if this test is done at the top of the script (as the whole script is parsed before execution).