isClass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Reset ArmA version)
(added note, see also, categorized)
Line 17: Line 17:


Result is true   
Result is true   
| |= See also
| [[configFile]], [[config/name]], [[configName]], [[count config]], [[getText config]], [[isArray config]], [[isNumber config]], [[isText config]], [[select config]] |= See also


}}
}}
Line 24: Line 24:
<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>
<dt class="note">'''[[User:Kronzky|Kronzky]]'''</dt><dd class="note">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.''
</dd>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
Line 31: Line 37:
[[Category:Scripting Commands|ISCLASSCONFIG]]
[[Category:Scripting Commands|ISCLASSCONFIG]]
[[Category:Scripting Commands ArmA|ISCLASSCONFIG]]
[[Category:Scripting Commands ArmA|ISCLASSCONFIG]]
[[Category:Command_Group:_System_Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 03:17, 2 March 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Check if config entry represents config class.
Groups:
Uncategorised

Syntax

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

Examples

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

Additional Information

See also:
configFileconfig/nameconfigNamecount configgetText configisArray configisNumber configisText configselect config

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.

Bottom Section