requiredVersion: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (add. note) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Check if version of application is available. If | | 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'''|= Description | Version of format '''Major.Minor''', e.g. '''1.30'''|= Description | ||
Line 19: | Line 19: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre> | |x1= <pre>if !(requiredVersion "1.09") exitWith {};</pre> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 29: | Line 29: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on March 12, 2008</dd> | |||
<dt class="note">'''[[User:Kronzky|Kronzky]]'''</dt> | |||
<dd class="note">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). | |||
</dd> | |||
<!-- Note Section END --> | <!-- Note Section END --> | ||
Line 39: | Line 44: | ||
[[Category:Scripting Commands OFP 1.46|REQUIREDVERSION]] | [[Category:Scripting Commands OFP 1.46|REQUIREDVERSION]] | ||
[[Category:Scripting Commands ArmA|REQUIREDVERSION]] | [[Category:Scripting Commands ArmA|REQUIREDVERSION]] | ||
[[Category:Command_Group:_System_Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 05:07, 13 March 2008
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
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
if !(requiredVersion "1.09") exitWith {};
Additional Information
- See also:
- See also needed
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
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).