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



Introduced in

Version:1.00

Description

Description:Checks if configuration entry is defined in the specified configuration file.

Syntax

Syntax:isClass config
Parameters:
  • config: Config-2 - Configuration entry.
Return Value:Boolean

Examples

Examples:
_isClass = isClass (configFile >> "CfgVehicles" >> "Thing");

Additional Information

See also: configFile, isNumber, isText, isArrayisDeleted
Multiplayer:
Problems:

Notes





Posted on March 2, 2007 - 01:17
Kronzky
This command allows you to check for the presence of an addon.


isClass (configFile >> "cfgVehicles" >> "MyCustomCar") 

will return true if the addon "MyCustomCar" is installed, and false if it is not installed.

You will have to know under which class the addon is categorized (in this case "cfgVehicles") to be able to use the right config path.