requiredVersion

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with 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:
requiredVersion version
Parameters:
version: String
Return Value:
Boolean

Examples

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

Additional Information

Multiplayer:
-
See also:
productVersionsupportInfo

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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