diaryRecordNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Fix str example)
Line 21: Line 21:
|x2= <code>[[isNull]] ([[objNull]] [[createDiaryRecord]] ["Diary", ["Title", "Text"]]); {{cc|true - [[objNull]] cannot take diary records}}</code> |EXAMPLE2=
|x2= <code>[[isNull]] ([[objNull]] [[createDiaryRecord]] ["Diary", ["Title", "Text"]]); {{cc|true - [[objNull]] cannot take diary records}}</code> |EXAMPLE2=


|x3= <code>[[str]] [[diaryRecordNull]]; {{cc|&lt;NULL-diaryRecord&gt;}}</code> |EXAMPLE3=
|x3= <code>[[str]] [[diaryRecordNull]]; {{cc|"No diary record"}}</code> |EXAMPLE3=


|x4= <code>[[private]] _diaryRecord = [[diaryRecordNull]];
|x4= <code>[[private]] _diaryRecord = [[diaryRecordNull]];

Revision as of 18:11, 9 July 2020

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.99|1.99]]
Hover & click on the images for description

Description

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

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

[[Category:Introduced with arma3dev version 1.99]][[ Category: arma3dev: New Scripting Commands | DIARYRECORDNULL]][[ Category: arma3dev: Scripting Commands | DIARYRECORDNULL]]

Notes

Bottom Section