isClass: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Fred Gandt (talk | contribs) m (<code> tidy) |
||
Line 14: | Line 14: | ||
| [[Boolean]] |= Return value | | [[Boolean]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Result is true | |x1 = <code>_ok = [[isClass]] ([[configFile]] [[gtgt|>>]] "CfgVehicles");</code> Result is [[true]]. |= Example 1 | ||
| [[configFile]], [[config/name]], [[configName]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isNumber]], [[isText]], [[select]] |= See also | | [[configFile]], [[config/name]], [[configName]], [[count]], [[getArray]], [[getText]], [[getNumber]], [[inheritsFrom]], [[isArray]], [[isNumber]], [[isText]], [[select]] |= See also | ||
Revision as of 13:25, 31 March 2014
Description
- Description:
- Check if config entry represents config class.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_ok = isClass (configFile >> "CfgVehicles");
Result is true.
Additional Information
- See also:
- configFileconfig/nameconfigNamecountgetArraygetTextgetNumberinheritsFromisArrayisNumberisTextselect
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
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.
- Posted on Mar 31, 2014 - 15:45
- ffur2007slx2_5
-
In ArmA3 ver 1.14. It is also recommended to use BIS_fnc_getCfgIsClass as a replacement of isClass especially working on custom config in description.ext. E.g.
["Something"] call bis_fnc_getCfgIsClass //Same as isClass (missionconfigfile >> "Something")