isEqualTypeAny: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(36 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.54


|1.54|Game version=
|gr1= Variables


|gr1= Variables |GROUP1=
|descr= Compares type of given value to every type in the given array and if match is found, [[true]] is returned.


____________________________________________________________________________________________
|s1= val [[isEqualTypeAny]] types


| Compares type of given value to every type in the given array and if match is found, [[true]] is returned.
|p1= val: [[Anything]]
|DESCRIPTION=
|p2= types: [[Array]]
____________________________________________________________________________________________


| val '''isEqualTypeAny''' types |SYNTAX=
|r1= [[Boolean]]


|p1= val: [[Anything]] |PARAMETER1=
|x1= <sqf>_var = [1, 2, 3];
|p2= types: [[Array]] |PARAMETER2=
_var isEqualTypeAny [0, "", objNull]; //false
 
_var isEqualTypeAny [0, "", objNull, []]; //true</sqf>
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_var = [1,2,3];
_var [[isEqualTypeAny]] [0,"",[[objNull]]]; //false
_var [[isEqualTypeAny]] [0,"",[[objNull]],[]]; //true</code> |EXAMPLE1=
____________________________________________________________________________________________
 
|[[isEqualType]], [[isEqualTypeAll]], [[isEqualTypeArray]], [[isEqualTypeParams]], [[param]], [[params]], [[isEqualTo]], [[typeName]]|SEEALSO=


|seealso= [[isEqualType]] [[isEqualTypeAll]] [[isEqualTypeArray]] [[isEqualTypeParams]] [[param]] [[params]] [[isEqualTo]] [[typeName]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:23, 13 May 2022

Hover & click on the images for description

Description

Description:
Compares type of given value to every type in the given array and if match is found, true is returned.
Groups:
Variables

Syntax

Syntax:
val isEqualTypeAny types
Parameters:
val: Anything
types: Array
Return Value:
Boolean

Examples

Example 1:
_var = [1, 2, 3]; _var isEqualTypeAny [0, "", objNull]; //false _var isEqualTypeAny [0, "", objNull, []]; //true

Additional Information

See also:
isEqualType isEqualTypeAll isEqualTypeArray isEqualTypeParams param params isEqualTo typeName

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