Difference between revisions of "diaryRecordNull"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (available on stable now)
m (Text replacement - "\{\{cc\|([^} ]*)\}\}" to "// $1")
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Command|Comments=
+
{{RV|type=command
____________________________________________________________________________________________
 
  
| arma3 |Game name=
+
|game1= arma3
 +
|version1= 2.00
  
| 2.00 |Game version=
+
|gr1= Briefing
  
|gr1= Briefing |GROUP1=
+
|gr2= Variables
  
|gr2= Variables |GROUP2=
+
|descr= A non-existent [[Diary Record]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
____________________________________________________________________________________________
+
* {{hl|c= [[diaryRecordNull]] {{=}}{{=}} [[diaryRecordNull]]; // false}}
 +
* {{hl|[[isNull]] [[diaryRecordNull]]; // true}}
 +
* {{hl|[[diaryRecordNull]] [[isEqualTo]] [[diaryRecordNull]]; // true}}
  
| A non-existent [[Diary Record]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
+
|s1= [[diaryRecordNull]]
* <tt>[[diaryRecordNull]] {{=}}{{=}} [[diaryRecordNull]]; {{cc|false}}</tt>
 
* <tt>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</tt>
 
* <tt>[[diaryRecordNull]] [[isEqualTo]] [[diaryRecordNull]]; {{cc|true}}</tt> |DESCRIPTION=
 
  
| [[diaryRecordNull]] |SYNTAX=
+
|r1= [[Diary Record]]
  
| [[Diary Record]] |RETURNVALUE=
+
|x1= <sqf>isNull diaryRecordNull; // true</sqf>
____________________________________________________________________________________________
 
  
|x1= <code>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</code> |EXAMPLE1=
+
|x2= <sqf>isNull (objNull createDiaryRecord ["Diary", ["Title", "Text"]]); // true - objNull cannot take diary records</sqf>
  
|x2= <code>[[isNull]] ([[objNull]] [[createDiaryRecord]] ["Diary", ["Title", "Text"]]); {{cc|true - [[objNull]] cannot take diary records}}</code> |EXAMPLE2=
+
|x3= <sqf>str diaryRecordNull; // "No diary record"</sqf>
  
|x3= <code>[[str]] [[diaryRecordNull]]; {{cc|"No diary record"}}</code> |EXAMPLE3=
+
|x4= <sqf>
 
+
private _diaryRecord = diaryRecordNull;
|x4= <code>[[private]] _diaryRecord = [[diaryRecordNull]];
+
if (damage player > 0.5) then
[[if]] ([[damage]] [[player]] > 0.5) [[then]]
 
 
{
 
{
_diaryRecord = [[player]] [[createDiaryRecord]] ["Diary", ["Heal yourself", "Ask a medic"]];
+
_diaryRecord = player createDiaryRecord ["Diary", ["Heal yourself", "Ask a medic"]];
 
};
 
};
[[if]] ([[not]] [[isNull]] _diaryRecord) [[then]] { [[hint]] "Diary record added."; };</code> |EXAMPLE4=
+
if (not isNull _diaryRecord) then { hint "Diary record added."; };
____________________________________________________________________________________________
+
</sqf>
  
| [[objNull]], [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO=
+
|seealso= [[objNull]] [[controlNull]] [[displayNull]] [[grpNull]] [[locationNull]] [[taskNull]] [[teamMemberNull]] [[scriptNull]] [[configNull]] [[typeName]] [[isNull]]
 
}}
 
}}
 
<h3 style="display:none">Notes</h3>
 
<dl class="command_description">
 
</dl>
 
 
<h3 style="display:none">Bottom Section</h3>
 

Latest revision as of 12:26, 12 May 2022

Hover & click on the images for description

Description

Description:
A non-existent Diary Record. To compare non-existent objects use isNull or isEqualTo:
Groups:
BriefingVariables

Syntax

Syntax:
diaryRecordNull
Return Value:
Diary Record

Examples

Example 1:
Example 2:
isNull (objNull createDiaryRecord ["Diary", ["Title", "Text"]]); // true - objNull cannot take diary records
Example 3:
str diaryRecordNull; // "No diary record"
Example 4:
private _diaryRecord = diaryRecordNull; if (damage player > 0.5) then { _diaryRecord = player createDiaryRecord ["Diary", ["Heal yourself", "Ask a medic"]]; }; if (not isNull _diaryRecord) then { hint "Diary record added."; };

Additional Information

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