isClass: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - "<dd class="notedate">Posted on ([^<>]+) " to "<dd class="notedate">Posted on $1</dd> ") |
||
Line 20: | Line 20: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on March 2, 2007 - 01:17 | <dd class="notedate">Posted on March 2, 2007 - 01:17</dd> | ||
<dt class="note">[[User:Kronzky|Kronzky]]<dd class="note">This command allows you to check for the presence of an addon. | <dt class="note">[[User:Kronzky|Kronzky]]<dd class="note">This command allows you to check for the presence of an addon. | ||
isClass (configFile >> "cfgVehicles" >> "MyCustomCar") | isClass (configFile >> "cfgVehicles" >> "MyCustomCar") | ||
Line 26: | Line 26: | ||
''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.'' | ''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.'' | ||
<dd class="notedate">Posted on Mar 31, 2014 - 15:45 | <dd class="notedate">Posted on Mar 31, 2014 - 15:45</dd> | ||
<dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]<dd class="note"> | <dt class="note">[[User:ffur2007slx2_5|ffur2007slx2_5]]<dd class="note"> | ||
(ArmA3 ver 1.14) According to BI Dev Karel Mořický, [[BIS_fnc_getCfgIsClass]] provides a comfortable workaround with custom config under description.ext compared with [[isClass]]. (But as a function created specifically for A3 campaign, it is in no way intended as a replacement for [[isClass]]. So it is not suggested to use it for [[configFile]] classes. But [[isClass]] instead.) | (ArmA3 ver 1.14) According to BI Dev Karel Mořický, [[BIS_fnc_getCfgIsClass]] provides a comfortable workaround with custom config under description.ext compared with [[isClass]]. (But as a function created specifically for A3 campaign, it is in no way intended as a replacement for [[isClass]]. So it is not suggested to use it for [[configFile]] classes. But [[isClass]] instead.) |
Revision as of 01:08, 30 January 2021
Description
- Description:
- Description needed
- Groups:
- Config
Syntax
- Syntax:
- Syntax needed
- Parameters:
- config: Config
- Return Value:
- Return value needed
Examples
- Example 1:
_ok = isClass (configFile >> "CfgVehicles");
Result is true.
Additional Information
- See also:
- See also needed
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
- 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
-
(ArmA3 ver 1.14) According to BI Dev Karel Mořický, BIS_fnc_getCfgIsClass provides a comfortable workaround with custom config under description.ext compared with isClass. (But as a function created specifically for A3 campaign, it is in no way intended as a replacement for isClass. So it is not suggested to use it for configFile classes. But isClass instead.)
E.g.
["Something1","Something2","Something3"] call bis_fnc_getCfgIsClass
//Same as isClass (missionconfigfile >> "Something1" >> "Something2" >> "Something3")