isText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Some wiki formatting)
 
(54 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|ISTEXT]]
{{RV|type=command
[[Category:Scripting Commands ArmA|ISTEXT]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">''' isText ''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]]
|descr= Checks if config entry represents a text value.


'''Compatibility:'''
|s1= [[isText]]  config


Version 2.35 required.
|p1= config: [[Config]]


'''Description:'''
|r1= [[Boolean]]


Check if config entry represents text.
|x1= <sqf>_isText = isText (configFile >> "CfgVehicles") // false</sqf>


|x2= <sqf>_isText = isText (configFile >> "CfgVehicles" >> "B_MRAP_01_F" >> "displayName") // true</sqf>


'''Example'''
|seealso= [[getText]] [[getNumber]] [[isArray]] [[isClass]] [[isNumber]]
 
}}
_ok = '''isText''' (configFile >> "CfgVehicles")  , result is false

Latest revision as of 16:18, 13 May 2022

Hover & click on the images for description

Description

Description:
Checks if config entry represents a text value.
Groups:
Config

Syntax

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

Examples

Example 1:
_isText = isText (configFile >> "CfgVehicles") // false
Example 2:
_isText = isText (configFile >> "CfgVehicles" >> "B_MRAP_01_F" >> "displayName") // true

Additional Information

See also:
getText getNumber isArray isClass isNumber

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