teamMemberNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "")
m (Some wiki formatting)
 
(49 intermediate revisions by the same user 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


|gr1= Teams |GROUP1=
|game3= tkoh
|version3= 1.00


| A non-existent [[Team Member]]. To compare non-existent team members use [[isNull]] or [[isEqualTo]]:
|game4= arma3
* <tt>[[teamMemberNull]] {{=}}{{=}} [[teamMemberNull]]; {{cc|false}}</tt>
|version4= 0.50
* <tt>[[isNull]] [[teamMemberNull]]; {{cc|true}}</tt>
* <tt>[[teamMemberNull]] [[isEqualTo]] [[teamMemberNull]]; {{cc|true}}</tt> |DESCRIPTION=


| [[teamMemberNull]] |SYNTAX=
|gr1= Teams


| [[Team Member]] |RETURNVALUE=
|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>![[isNull]] [[teamMemberNull]]; {{cc|false}}</code> |EXAMPLE1=
|s1= [[teamMemberNull]]
|x2= <code>[[str]] [[teamMemberNull]]; {{cc|&lt;NULL - team member&gt;}}</code> |EXAMPLE2=
|x3= <code>[[if]] (_teamMember [[isEqualTo]] [[teamMemberNull]]) [[then]] {
[[hint]] "team member is null";
};</code> |EXAMPLE3=


|r1= [[Team Member]]


| [[addTeamMember]], [[createTeam]], [[deleteTeam]], [[forEachMemberTeam]], [[removeTeamMember]], [[teamMember]], [[teamName]], [[teams]], [[teamType]], [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[taskNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO=
|x1= <sqf>!isNull teamMemberNull; // false</sqf>
}}


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


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


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

Latest revision as of 16: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