diaryRecordNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<tt>([^= ]+)<\/tt>" to "{{hl|$1}}")
m (Text replacement - "<tt>([^ ]*=[^ ]*)<\/tt>" to "{{hl|c= $1}}")
Line 9: Line 9:


|descr= 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}}}}
* {{hl|[[isNull]] [[diaryRecordNull]]; {{cc|true}}}}
* {{hl|[[isNull]] [[diaryRecordNull]]; {{cc|true}}}}
* {{hl|[[diaryRecordNull]] [[isEqualTo]] [[diaryRecordNull]]; {{cc|true}}}}
* {{hl|[[diaryRecordNull]] [[isEqualTo]] [[diaryRecordNull]]; {{cc|true}}}}

Revision as of 00:24, 16 November 2021

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:
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:
objNullcontrolNulldisplayNullgrpNulllocationNulltaskNullteamMemberNullscriptNullconfigNulltypeNameisNull

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