isArray: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "config / name" to "a / b")
 
(71 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|ISARRAYCONFIG]]
{{RV|type=command
[[Category:Scripting Commands ArmA|ISARRAYCONFIG]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">''' isArray ''config'''''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


'''config''': [[Config]]
|game5= arma3
|version5= 0.50


'''Type of returned value:'''
|gr1= Config


[[Boolean]]
|gr2= Arrays


'''Compatibility:'''
|descr= Check if config entry represents array.


Version 2.35 required.
|s1= [[isArray]] config


'''Description:'''
|p1= config: [[Config]]


Check if config entry represents array.
|r1= [[Boolean]]


|x1= <sqf>_ok = isArray (configFile >> "CfgVehicles") // returns false</sqf>


'''Example'''
|seealso= [[configFile]] [[a / b]] [[configName]] [[count]] [[getArray]] [[getText]] [[getNumber]] [[inheritsFrom]] [[isClass]] [[isNumber]] [[isText]] [[select]]
 
}}
_ok = '''isArray''' (configFile >> "CfgVehicles") .... result is false

Latest revision as of 15:22, 30 May 2022

Hover & click on the images for description

Description

Description:
Check if config entry represents array.
Groups:
ConfigArrays

Syntax

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

Examples

Example 1:
_ok = isArray (configFile >> "CfgVehicles") // returns false

Additional Information

See also:
configFile a / b configName count getArray getText getNumber inheritsFrom isClass isNumber isText select

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