teamMemberNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
(description example)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| A null team member. |= Description
| A non-existent [[Team Member]]. To compare non-existent team members use [[isNull]] or [[isEqualTo]]:
* <tt>[[teamMemberNull]] <nowiki>==</nowiki> [[teamMemberNull]]; // false</tt>
* <tt>[[isNull]] [[teamMemberNull]]; // true</tt>
* <tt>[[teamMemberNull]] [[isEqualTo]] [[teamMemberNull]]; // true</tt> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 15: Line 18:




|x1= <code>[[if]] (_teamMember [[isEqualTo]] [[teamMemberNull]]) [[then]] {
| x1 = <code>![[isNull]] [[teamMemberNull]]; // false</code> |=
| x2 = <code>[[str]] [[teamMemberNull]]; // <NULL - team member></code> |=
|x3= <code>[[if]] (_teamMember [[isEqualTo]] [[teamMemberNull]]) [[then]] {
[[hint]] "is null member";
[[hint]] "is null member";
};</code> |= EXAMPLE1  
};</code> |= EXAMPLE1  

Revision as of 19:49, 26 March 2016

Hover & click on the images for description

Description

Description:
A non-existent Team Member. To compare non-existent team members use isNull or isEqualTo:
Groups:
Uncategorised

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 "is null member"; };

Additional Information

See also:
addTeamMembercreateTeamdeleteTeamforEachMemberTeamremoveTeamMemberteamMemberteamNameteamsteamTypecontrolNulldisplayNullgrpNulllocationNullobjNulltaskNullscriptNullconfigNulltypeNameisNull

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

Notes

Bottom Section