Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Checks if a configuration entry is a number. If the entry is undefined for the queried configuration, the command checks the parent classes for inherited properties.

Syntax

Syntax:isNumber configEntry
Parameters:
  • configEntry: Config-2 - Configuration entry to check.
Return Value:Boolean - Returns true, if the configuration entry is a number, false otherwise.

Examples

Examples:
_armorDefined = isNumber (configFile>>"CfgVehicles">>"Tank">>"armor")

Additional Information

See also: getNumber, isClass, isArray, isText
Multiplayer: 
Problems:Some properties seem to have a default value of 0 assigned to them by the engine, and, even though they are explicitly defined (even in parent classes), they return 0 for getNumber, or true for isNumber.

Notes