diaryRecordNull: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


| 2.00 |Game version=
| 2.00


|gr1= Briefing |GROUP1=
|gr1= Briefing


|gr2= Variables |GROUP2=
|gr2= Variables


| A non-existent [[Diary Record]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
| A non-existent [[Diary Record]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]:
* <tt>[[diaryRecordNull]] {{=}}{{=}} [[diaryRecordNull]]; {{cc|false}}</tt>
* <tt>[[diaryRecordNull]] {{=}}{{=}} [[diaryRecordNull]]; {{cc|false}}</tt>
* <tt>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</tt>
* <tt>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</tt>
* <tt>[[diaryRecordNull]] [[isEqualTo]] [[diaryRecordNull]]; {{cc|true}}</tt> |DESCRIPTION=
* <tt>[[diaryRecordNull]] [[isEqualTo]] [[diaryRecordNull]]; {{cc|true}}</tt>


| [[diaryRecordNull]] |SYNTAX=
| [[diaryRecordNull]]


| [[Diary Record]] |RETURNVALUE=
| [[Diary Record]]


|x1= <code>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</code> |EXAMPLE1=
|x1= <code>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</code>


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


|x3= <code>[[str]] [[diaryRecordNull]]; {{cc|"No diary record"}}</code> |EXAMPLE3=
|x3= <code>[[str]] [[diaryRecordNull]]; {{cc|"No diary record"}}</code>


|x4= <code>[[private]] _diaryRecord = [[diaryRecordNull]];
|x4= <code>[[private]] _diaryRecord = [[diaryRecordNull]];
Line 29: Line 29:
_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."; };</code>


| [[objNull]], [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO=
| [[objNull]], [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]]
}}
}}



Revision as of 00:30, 18 January 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

Notes

Bottom Section