isClass config

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.00

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Check if config entry represents config class.

Syntax

Syntax:
Boolean = isClass Config
Parameters:
Config
Return Value:
Boolean

Examples

Example 1:
_ok = isClass (configFile >> "CfgVehicles")

Result is true

Additional Information

Multiplayer:
Behaviour unknown.
See also:
configFile, config/name, configName, count config, getArray config, getText config, getNumber config, inheritsFrom config, isArray config, isNumber config, isText config, select config

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

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.

Bottom Section

Personal tools
Buy ArmA now!