diaryRecordNull: Difference between revisions
Jump to navigation
Jump to search
m (available on stable now) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|gr2= Variables |GROUP2= | |gr2= Variables |GROUP2= | ||
| 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]]: | ||
Line 19: | Line 17: | ||
| [[Diary Record]] |RETURNVALUE= | | [[Diary Record]] |RETURNVALUE= | ||
|x1= <code>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</code> |EXAMPLE1= | |x1= <code>[[isNull]] [[diaryRecordNull]]; {{cc|true}}</code> |EXAMPLE1= | ||
Line 33: | Line 30: | ||
}; | }; | ||
[[if]] ([[not]] [[isNull]] _diaryRecord) [[then]] { [[hint]] "Diary record added."; };</code> |EXAMPLE4= | [[if]] ([[not]] [[isNull]] _diaryRecord) [[then]] { [[hint]] "Diary record added."; };</code> |EXAMPLE4= | ||
| [[objNull]], [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO= | | [[objNull]], [[controlNull]], [[displayNull]], [[grpNull]], [[locationNull]], [[taskNull]], [[teamMemberNull]], [[scriptNull]], [[configNull]], [[typeName]], [[isNull]] |SEEALSO= |
Revision as of 00:49, 17 January 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