teamMemberNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(teamMemberNull can be compared)
m (Some wiki formatting)
 
(66 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| A null team member. |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''teamMemberNull''' |= Syntax
|game4= arma3
|version4= 0.50


| [[Team Member]] |= RETURNVALUE
|gr1= Teams


|descr= A non-existent [[Team Member]]. To compare non-existent team members use [[isNull]] or [[isEqualTo]]:
<sqf>
teamMemberNull == teamMemberNull; // false
isNull teamMemberNull; // true
teamMemberNull isEqualTo teamMemberNull; // true
</sqf>


|x1= <code>[[if]] (_teamMember [[isEqualTo]] [[teamMemberNull]]) [[then]] {
|s1= [[teamMemberNull]]
[[hint]] "is null member";
};</code> |= EXAMPLE1


____________________________________________________________________________________________
|r1= [[Team Member]]


| [[addTeamMember]], [[createTeam]], [[deleteTeam]], [[forEachMemberTeam]], [[removeTeamMember]], [[teamMember]], [[teamName]], [[teams]], [[teamType]] |= SEEALSO
|x1= <sqf>!isNull teamMemberNull; // false</sqf>


| |= MPBEHAVIOUR
|x2= <sqf>str teamMemberNull; // <NULL - team member></sqf>
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|x3= <sqf>
<dl class='command_description'>
if (_teamMember isEqualTo teamMemberNull) then
<!-- Note Section BEGIN -->
{
hint "team member is null";
};
</sqf>


<!-- Note Section END -->
|seealso= [[addTeamMember]] [[createTeam]] [[deleteTeam]] [[forEachMemberTeam]] [[removeTeamMember]] [[teamMember]] [[teamName]] [[teams]] [[teamType]] [[controlNull]] [[displayNull]] [[grpNull]] [[locationNull]] [[objNull]] [[taskNull]] [[scriptNull]] [[configNull]] [[typeName]] [[isNull]]
</dl>
}}
 
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:58, 27 August 2022

Hover & click on the images for description

Description

Description:
A non-existent Team Member. To compare non-existent team members use isNull or isEqualTo:
teamMemberNull == teamMemberNull; // false isNull teamMemberNull; // true teamMemberNull isEqualTo teamMemberNull; // true
Groups:
Teams

Syntax

Syntax:
teamMemberNull
Return Value:
Team Member

Examples

Example 1:
!isNull teamMemberNull; // false
Example 2:
str teamMemberNull; // <NULL - team member>
Example 3:
if (_teamMember isEqualTo teamMemberNull) then { hint "team member is null"; };

Additional Information

See also:
addTeamMember createTeam deleteTeam forEachMemberTeam removeTeamMember teamMember teamName teams teamType controlNull displayNull grpNull locationNull objNull taskNull scriptNull configNull typeName isNull

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