getNumber: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (returns a number)
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|GETNUMBER]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|GETNUMBER]]
____________________________________________________________________________________________


| arma |= Game name


<h2 style="color:#000066">'''getNumber  ''config'''''</h2>
|2.35|= Game version
____________________________________________________________________________________________


| Extract number from config entry. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''getNumber''' config |= Syntax


'''config''': [[Config]]
|p1= config [[Config]] |= Parameter 1
   
'''Type of returned value:'''


[[Number]]
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_value = getNumber (configFile >> "CfgVehicles" >> "Thing" >> "maxSpeed")</pre> |= Example 1
____________________________________________________________________________________________


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


Version 2.35 required.
}}


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


Extract number from config entry.
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Example''':
[[Category:Scripting Commands|GETNUMBER]]
   
[[Category:Scripting Commands ArmA|GETNUMBER]]
_value = '''getNumber''' (configFile >> "CfgVehicles" >> "Thing" >> "maxSpeed")

Revision as of 01:22, 2 August 2006

-wrong parameter ("Arma") defined!-2.35
Hover & click on the images for description

Description

Description:
Extract number from config entry.
Groups:
Uncategorised

Syntax

Syntax:
getNumber config
Parameters:
config Config
Return Value:
Number

Examples

Example 1:
_value = getNumber (configFile >> "CfgVehicles" >> "Thing" >> "maxSpeed")

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