isEqualTypeAny: Difference between revisions

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


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


|1.53|= Game version
|gr1= Variables


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


| Compares type of given value to every type in the given array and if match is found, [[true]] is returned.
|s1= val [[isEqualTypeAny]] types
|= Description
____________________________________________________________________________________________


| val '''isEqualTypeAny''' types |= Syntax
|p1= val: [[Anything]]
|p2= types: [[Array]]


|p1= val: [[Anything]] |= Parameter 1
|r1= [[Boolean]]
|p2= types: [[Array]] |= Parameter 2


| [[Boolean]] |= Return value
|x1= <sqf>
____________________________________________________________________________________________
_var = [1, 2, 3];
 
_var isEqualTypeAny [0, "", objNull]; //false
|x1= <code>_var = [1,2,3];
_var isEqualTypeAny [0, "", objNull, []]; //true
_var [[isEqualTypeAny]] [0,"",[[objNull]]]; //false
</sqf>
_var [[isEqualTypeAny]] [0,"",[[objNull]],[]]; //true</code> |= Example 1
____________________________________________________________________________________________
 
|[[isEqualType]], [[isEqualTypeAll]], [[isEqualTypeArray]], [[isEqualTypeParams]], [[param]], [[params]], [[isEqualTo]], [[typeName]]|= See also


|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 19:43, 3 September 2024

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