taskNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(46 intermediate revisions by 2 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


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


|gr2= Variables |GROUP2=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


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


| '''taskNull''' |SYNTAX=
|gr2= Variables


| [[Task]] |RETURNVALUE=  
|descr= A non-existing [[Task]]. To compare non-existent tasks use [[isNull]] or [[isEqualTo]]:
<sqf>
taskNull == taskNull; // false
isNull taskNull; // true
taskNull isEqualTo taskNull; // true
</sqf>


|s1= [[taskNull]]


| x1 = <code>![[isNull]] [[taskNull]]; // false</code> |EXAMPLE1=
|r1= [[Task]]
| x2 = <code>[[str]] [[taskNull]]; // No task</code> |EXAMPLE2=


____________________________________________________________________________________________
|x1= <sqf>!isNull taskNull; // false</sqf>


|[[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[objNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]]  |SEEALSO=  
|x2= <sqf>str taskNull; // no task</sqf>


| |MPBEHAVIOUR=  
|seealso= [[controlNull]] [[displayNull]] [[grpNull]] [[locationNull]] [[objNull]] [[teamMemberNull]] [[scriptNull]] [[configNull]] [[typeName]] [[isNull]]
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Scripting Commands Arma 2|{{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 19:42, 3 September 2024

Hover & click on the images for description

Description

Description:
A non-existing Task. To compare non-existent tasks use isNull or isEqualTo:
taskNull == taskNull; // false isNull taskNull; // true taskNull isEqualTo taskNull; // true
Groups:
BriefingVariables

Syntax

Syntax:
taskNull
Return Value:
Task

Examples

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

Additional Information

See also:
controlNull displayNull grpNull locationNull objNull teamMemberNull 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