requiredVersion

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.21

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.21

Description

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

Syntax:
Boolean = requiredVersion "version"
Parameters:
version: String
Return Value:
Boolean

Examples

Example 1:
if !(requiredVersion "1.09") exitWith {};

Additional Information

Multiplayer:
Behaviour unknown.

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Posted on March 12, 2008
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).

Bottom Section

Personal tools
Buy ArmA now!