Difference between revisions of "diaryRecordNull"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
| arma3
|game1= arma3
|version1= 2.00
| 2.00
|gr1= Briefing
|gr1= Briefing
Line 9: Line 8:
|gr2= Variables
|gr2= Variables
| A non-existent [[Diary Record]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
|descr= A non-existent [[Diary Record]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
* <tt>[[diaryRecordNull]] {{=}}{{=}} [[diaryRecordNull]]; {{cc|false}}</tt>
* {{hl|c= [[diaryRecordNull]] {{=}}{{=}} [[diaryRecordNull]]; {{cc|false}}}}
* <tt>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</tt>
* {{hl|[[isNull]] [[diaryRecordNull]]; {{cc|true}}}}
* <tt>[[diaryRecordNull]] [[isEqualTo]] [[diaryRecordNull]]; {{cc|true}}</tt>
* {{hl|[[diaryRecordNull]] [[isEqualTo]] [[diaryRecordNull]]; {{cc|true}}}}
| [[diaryRecordNull]]
|s1= [[diaryRecordNull]]
| [[Diary Record]]
|r1= [[Diary Record]]
|x1= <code>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</code>
|x1= <code>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</code>
Line 31: Line 30:
[[if]] ([[not]] [[isNull]] _diaryRecord) [[then]] { [[hint]] "Diary record added."; };</code>
[[if]] ([[not]] [[isNull]] _diaryRecord) [[then]] { [[hint]] "Diary record added."; };</code>
| [[objNull]], [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]]
|seealso= [[objNull]] [[controlNull]] [[displayNull]] [[grpNull]] [[locationNull]] [[taskNull]] [[teamMemberNull]] [[scriptNull]] [[configNull]] [[typeName]] [[isNull]]
<dl class="command_description">

Latest revision as of 16:32, 20 January 2022

Hover & click on the images for description


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


Return Value:
Diary Record


Example 1:
isNull diaryRecordNull; // true
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


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