isEqualTypeAll: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.54|Game version=
|1.54


|gr1= Variables |GROUP1=
|gr1= Variables


|gr2= Arrays |GROUP2=
|gr2= Arrays




| Compares types of all elements of an array to the type of a single value.
| Compares types of all elements of an array to the type of a single value.
|DESCRIPTION=


| arr '''isEqualTypeAll''' val |SYNTAX=


|p1= arr: [[Array]] |PARAMETER1=
| arr '''isEqualTypeAll''' val
|p2= val: [[Anything]] |PARAMETER2=


| [[Boolean]] |RETURNVALUE=
|p1= arr: [[Array]]
|p2= val: [[Anything]]
 
| [[Boolean]]
   
   
|x1= <code>_arr = [1,2,3,4,5,6,7,8,9,0];
|x1= <code>_arr = [1,2,3,4,5,6,7,8,9,0];
_arr [[isEqualTypeAll]] ""; //false
_arr [[isEqualTypeAll]] ""; //false
_arr [[isEqualTypeAll]] 0; //true</code> |EXAMPLE1=
_arr [[isEqualTypeAll]] 0; //true</code>




|[[isEqualTypeArray]], [[isEqualTypeAny]], [[isEqualType]], [[isEqualTypeParams]], [[param]], [[params]], [[isEqualTo]], [[typeName]]|SEEALSO=
|[[isEqualTypeArray]], [[isEqualTypeAny]], [[isEqualType]], [[isEqualTypeParams]], [[param]], [[params]], [[isEqualTo]], [[typeName]]


}}
}}

Revision as of 01:39, 18 January 2021

Hover & click on the images for description

Description

Description:
Compares types of all elements of an array to the type of a single value.
Groups:
VariablesArrays

Syntax

Syntax:
arr isEqualTypeAll val
Parameters:
arr: Array
val: Anything
Return Value:
Boolean

Examples

Example 1:
_arr = [1,2,3,4,5,6,7,8,9,0]; _arr isEqualTypeAll ""; //false _arr isEqualTypeAll 0; //true

Additional Information

See also:
isEqualTypeArrayisEqualTypeAnyisEqualTypeisEqualTypeParamsparamparamsisEqualTotypeName

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

Bottom Section

Posted on November 25, 2015 - 17:55 (UTC)
Commy2
This command will return false if the array on the left side is empty ([]) regardless of the sample value.
[] isEqualTypeAll "" -> false