isNumber: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
Line 23: Line 23:


|p1= config: [[Config]]
|p1= config: [[Config]]
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <code>_ok <nowiki>=</nowiki> '''isNumber''' (configFile >> "CfgVehicles")</code>
|x1= <sqf>_ok = isNumber (configFile >> "CfgVehicles")</sqf>


Result is false   
Result is false   
|seealso= [[configFile]] [[config / name]] [[configName]] [[count]] [[getArray]] [[getText]] [[getNumber]] [[inheritsFrom]] [[isArray]] [[isClass]] [[isText]] [[select]]
|seealso= [[configFile]] [[config / name]] [[configName]] [[count]] [[getArray]] [[getText]] [[getNumber]] [[inheritsFrom]] [[isArray]] [[isClass]] [[isText]] [[select]]
}}
}}

Revision as of 12:20, 13 May 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 config / name 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