teamMemberNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^\[]+)<\/code>" to "<sqf>$1</sqf>")
m (Some wiki formatting)
 
Line 16: Line 16:


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


|s1= [[teamMemberNull]]
|s1= [[teamMemberNull]]
Line 26: Line 28:
|x1= <sqf>!isNull teamMemberNull; // false</sqf>
|x1= <sqf>!isNull teamMemberNull; // false</sqf>


|x2= <sqf>str teamMemberNull; // &lt;NULL - team member&gt;</sqf>
|x2= <sqf>str teamMemberNull; // <NULL - team member></sqf>


|x3= <sqf>if (_teamMember isEqualTo teamMemberNull) then
|x3= <sqf>
if (_teamMember isEqualTo teamMemberNull) then
{
{
hint "team member is null";
hint "team member is null";
};</sqf>
};
</sqf>


|seealso= [[addTeamMember]] [[createTeam]] [[deleteTeam]] [[forEachMemberTeam]] [[removeTeamMember]] [[teamMember]] [[teamName]] [[teams]] [[teamType]] [[controlNull]] [[displayNull]] [[grpNull]] [[locationNull]] [[objNull]] [[taskNull]] [[scriptNull]] [[configNull]] [[typeName]] [[isNull]]
|seealso= [[addTeamMember]] [[createTeam]] [[deleteTeam]] [[forEachMemberTeam]] [[removeTeamMember]] [[teamMember]] [[teamName]] [[teams]] [[teamType]] [[controlNull]] [[displayNull]] [[grpNull]] [[locationNull]] [[objNull]] [[taskNull]] [[scriptNull]] [[configNull]] [[typeName]] [[isNull]]
}}
}}

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