BIS fnc areEqualNotNil: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function " to "{{RV|type=function ")
m (Text replacement - "\{\{ *codecomment *\| *\/\/ *([^ ]+) *\}\} " to "{{cc|$1}}")
Line 15: Line 15:
| [[Boolean]]
| [[Boolean]]


|x1= <code><nowiki>[</nowiki>[1, 2, [3, [4, 5]]],  [1, 2, [3, [4, 5]]]]  [[call]] [[BIS_fnc_areEqualNotNil]]; {{codecomment|// true}}
|x1= <code><nowiki>[</nowiki>[1, 2, [3, [4, 5]]],  [1, 2, [3, [4, 5]]]]  [[call]] [[BIS_fnc_areEqualNotNil]]; {{cc| true}}<nowiki>[</nowiki>[1, 2, [3, [4, [[nil]]]]], [1, 2, [3, [4, [[nil]]]]]] [[call]] [[BIS_fnc_areEqualNotNil]]; {{codecomment|// false}}</code>
<nowiki>[</nowiki>[1, 2, [3, [4, [[nil]]]]], [1, 2, [3, [4, [[nil]]]]]] [[call]] [[BIS_fnc_areEqualNotNil]]; {{codecomment|// false}}</code>


|x2= <code><nowiki>[</nowiki>[[nil]], [[nil]]] [[call]] [[BIS_fnc_areEqualNotNil]]; {{codecomment|// false}}</code>
|x2= <code><nowiki>[</nowiki>[[nil]], [[nil]]] [[call]] [[BIS_fnc_areEqualNotNil]]; {{codecomment|// false}}</code>

Revision as of 16:30, 29 January 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Variables

Syntax

Syntax:
Syntax needed
Parameters:
anythings: Anything - nil values won't be considered equal
Return Value:
Return value needed

Examples

Example 1:
[[1, 2, [3, [4, 5]]], [1, 2, [3, [4, 5]]]] call BIS_fnc_areEqualNotNil; // true[[1, 2, [3, [4, nil]]], [1, 2, [3, [4, nil]]]] call BIS_fnc_areEqualNotNil; // false
Example 2:
[nil, nil] call BIS_fnc_areEqualNotNil; // false

Additional Information

See also:
See also needed

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