isNull: Difference between revisions
Jump to navigation
Jump to search
(isNull does not accept type side, wikify example) |
No edit summary |
||
Line 51: | Line 51: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
{{subst:Add new note/construct| | |||
<!-- | |||
* Replace from here (including the arrow just above) | |||
* Please add your note here, replacing these comments | |||
* Please '''PREVIEW YOUR ADDITION BEFORE SAVING''' | |||
* Thank you | |||
* Equal symbols "=" should be added as "{{subst:=}}" (excluding quotes) | |||
* Pipes "|" should be added as "{{subst:!}}" (excluding quotes) | |||
* New lines should be forced by the use of "<br>" tags | |||
* Examples should be placed between tags <code>_like {{subst:=}} [[_this]];</code> | |||
* Replace to here (including the arrow just below) | |||
locationNull could be confusing when testing destinationTask : | |||
if a task is created, taskDestination returns an array working as position : _mytask_distance = (taskDestination (currentTask player)) distance player; | |||
When task completed Hint format ["%1", taskDestination (currentTask player)] returns <null> while !isnull taskdestination.. leads to an error. | |||
correct test : _destination_task = taskDestination (currentTask player); if (!isNil "_destination_tsk") then {... | |||
}} |
Revision as of 19:04, 4 September 2014
Description
- Description:
- Checks whether the tested item is Null.
Which null type the item has to be equal to depends on the type of object tested:
- Objects -> objNull
- Controls -> controlNull
- Displays -> displayNull
- Groups -> grpNull
- Locations -> locationNull (since ARMA 2)
- Tasks -> taskNull (since ARMA 2)
- Groups:
- Uncategorised
Syntax
- Syntax:
- isNull obj
- Parameters:
- obj: Object, Control, Display, Group (or Location, Task since ARMA 2)
- Return Value:
- Boolean
Examples
Additional Information
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
{{subst:Add new note/construct|
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Object Information
- Command Group: Variables
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters