Diary Record: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Undo revision 155160 by killzone_kid (talk))
Tag: Undo
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
Line 3: Line 3:




{{Informative |
{{Feature | Informative |
Before the introduction of [[diaryRecordNull]], its value could still be obtained and compared as follow:
Before the introduction of [[diaryRecordNull]], its value could still be obtained and compared as follow:
<code>[[private]] _nullRecord {{=}} [[objNull]] [[createDiaryRecord]] []; {{cc|wrong parameters {{=}} failure to create a record {{=}} null value}}<br><br><!--
<code>[[private]] _nullRecord {{=}} [[objNull]] [[createDiaryRecord]] []; {{cc|wrong parameters {{=}} failure to create a record {{=}} null value}}<br><br><!--

Revision as of 00:03, 7 February 2021

Description:
A Diary Record is created by createDiaryRecord - introduced in Arma 2.


Before the introduction of diaryRecordNull, its value could still be obtained and compared as follow: private _nullRecord = objNull createDiaryRecord []; // wrong parameters = failure to create a record = null value

private _createdRecord = player createDiaryRecord ["Diary", ["title", "description"]];
if (_createdRecord isEqualTo _nullRecord) then { hint "Failed" };