isNumber: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
 
(68 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|ISNUMBER]]
{{RV|type=command
[[Category:Scripting Commands ArmA|ISNUMBER]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">''' isNumber ''config'''''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


'''config:''' [[Config]]
|game5= arma3
|version5= 0.50


'''Type of returned value:'''
|gr1= Config


[[Boolean]]
|descr= Check if config entry represents number.


'''Compatibility:'''
|s1= [[isNumber]] config


Version 2.35 required.
|p1= config: [[Config]]


'''Description:'''
|r1= [[Boolean]]


Check if config entry represents number.
|x1= <sqf>_ok = isNumber (configFile >> "CfgVehicles");</sqf>


 
Result is false 
'''Example'''
|seealso= [[configFile]] [[a / b]] [[configName]] [[count]] [[getArray]] [[getText]] [[getNumber]] [[inheritsFrom]] [[isArray]] [[isClass]] [[isText]] [[select]]
 
}}
_ok = '''isNumber''' (configFile >> "CfgVehicles")  .... result is false

Latest revision as of 22:43, 28 June 2022

Hover & click on the images for description

Description

Description:
Check if config entry represents number.
Groups:
Config

Syntax

Syntax:
isNumber config
Parameters:
config: Config
Return Value:
Boolean

Examples

Example 1:
_ok = isNumber (configFile >> "CfgVehicles");
Result is false

Additional Information

See also:
configFile a / b configName count getArray getText getNumber inheritsFrom isArray isClass isText select

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