diaryRecordNull: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *\[\[([a-zA-Z0-9_]+)\]\] * \|r1=" to "|s1= $1 |r1=") |
Lou Montana (talk | contribs) m (Text replacement - " |r1=[[" to " |r1= [[") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| 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> | * <tt>[[diaryRecordNull]] {{=}}{{=}} [[diaryRecordNull]]; {{cc|false}}</tt> | ||
* <tt>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</tt> | * <tt>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</tt> | ||
Line 16: | Line 15: | ||
|s1= [[diaryRecordNull]] | |s1= [[diaryRecordNull]] | ||
|r1=[[Diary Record]] | |r1= [[Diary Record]] | ||
|x1= <code>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</code> | |x1= <code>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</code> |
Revision as of 23:36, 7 August 2021
Description
- Description:
- A non-existent Diary Record. To compare non-existent objects use isNull or isEqualTo:
- diaryRecordNull == diaryRecordNull; // false
- isNull diaryRecordNull; // true
- diaryRecordNull isEqualTo diaryRecordNull; // true
- 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