taskNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 9: Line 8:


|gr2= Variables |GROUP2=
|gr2= Variables |GROUP2=
____________________________________________________________________________________________


| A non-existing [[Task]]. To compare non-existent tasks use [[isNull]] or [[isEqualTo]]:
| A non-existing [[Task]]. To compare non-existent tasks use [[isNull]] or [[isEqualTo]]:
Line 15: Line 13:
* <tt>[[isNull]] [[taskNull]]; // true</tt>
* <tt>[[isNull]] [[taskNull]]; // true</tt>
* <tt>[[taskNull]] [[isEqualTo]] [[taskNull]]; // true</tt> |DESCRIPTION=
* <tt>[[taskNull]] [[isEqualTo]] [[taskNull]]; // true</tt> |DESCRIPTION=
____________________________________________________________________________________________


| '''taskNull''' |SYNTAX=
| '''taskNull''' |SYNTAX=
Line 25: Line 22:
| x2 = <code>[[str]] [[taskNull]]; // No task</code> |EXAMPLE2=  
| x2 = <code>[[str]] [[taskNull]]; // No task</code> |EXAMPLE2=  


____________________________________________________________________________________________


|[[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]]  |SEEALSO=  
|[[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]]  |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 03:59, 17 January 2021

Hover & click on the images for description

Description

Description:
A non-existing Task. To compare non-existent tasks use isNull or isEqualTo:
Groups:
BriefingVariables

Syntax

Syntax:
taskNull
Return Value:
Task

Examples

Example 1:
!isNull taskNull; // false
Example 2:
str taskNull; // No task

Additional Information

See also:
controlNulldisplayNullgrpNulllocationNullobjNullteamMemberNullscriptNullconfigNulltypeNameisNull

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