requiredVersion: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (moved command to template)
Line 4: Line 4:
[[Category:Scripting Commands ArmA|REQUIREDVERSION]]
[[Category:Scripting Commands ArmA|REQUIREDVERSION]]


{{Command|= Comments
____________________________________________________________________________________________


<h2 style="color:#000066">'''requiredVersion ''version'''''</h2>
| ofp |= Game name


|1.21|= Game version
____________________________________________________________________________________________


'''Operand types:'''
| Check if version of application is available. If not, show warning message and return [[false]]. Version format is '''Major.Minor''', e.g. '''1.30'''. |= Description
____________________________________________________________________________________________


'''version:''' [[String]]
| '''requiredVersion''' version |= Syntax


'''Type of returned value:'''
|p1= version: [[String]] |= Parameter 1


[[Boolean]]
| [[Boolean]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>requiredVersion "1.30"</pre> |= Example 1
____________________________________________________________________________________________


'''Compatibility:'''
|  |= See also


Added in version '''1.21'''
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Check if version of application is available.
<!-- Note Section END -->
</dl>


If not, show warning message and return [[false]].
<h3 style="display:none">Bottom Section</h3>
 
Version format is '''''"Major.Minor"''''', e.g. "'''1.30'''".
 
 
'''Example:'''
 
'''requiredVersion''' "1.30"

Revision as of 02:30, 3 August 2006


Hover & click on the images for description

Description

Description:
Check if version of application is available. If not, show warning message and return false. Version format is Major.Minor, e.g. 1.30.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
requiredVersion "1.30"

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

Bottom Section