Difference between revisions of "diaryRecordNull"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{cc\|([^} ]*)\}\}" to "// $1") |
||
(24 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{RV|type=command |
− | | arma3 | | + | |game1= arma3 |
+ | |version1= 2.00 | ||
− | | | + | |gr1= Briefing |
− | | | + | |gr2= Variables |
− | | | + | |descr= A non-existent [[Diary Record]]. To compare non-existent objects use [[isNull]] or [[isEqualTo]]: |
+ | * {{hl|c= [[diaryRecordNull]] {{=}}{{=}} [[diaryRecordNull]]; // false}} | ||
+ | * {{hl|[[isNull]] [[diaryRecordNull]]; // true}} | ||
+ | * {{hl|[[diaryRecordNull]] [[isEqualTo]] [[diaryRecordNull]]; // true}} | ||
− | | | + | |s1= [[diaryRecordNull]] |
− | |||
− | |||
− | |||
− | | [[ | + | |r1= [[Diary Record]] |
− | | | + | |x1= <sqf>isNull diaryRecordNull; // true</sqf> |
− | | | + | |x2= <sqf>isNull (objNull createDiaryRecord ["Diary", ["Title", "Text"]]); // true - objNull cannot take diary records</sqf> |
− | | | + | |x3= <sqf>str diaryRecordNull; // "No diary record"</sqf> |
− | | | + | |x4= <sqf> |
− | + | private _diaryRecord = diaryRecordNull; | |
− | + | if (damage player > 0.5) then | |
− | |||
{ | { | ||
− | _diaryRecord = | + | _diaryRecord = player createDiaryRecord ["Diary", ["Heal yourself", "Ask a medic"]]; |
}; | }; | ||
− | + | if (not isNull _diaryRecord) then { hint "Diary record added."; }; | |
+ | </sqf> | ||
− | | [[objNull]] | + | |seealso= [[objNull]] [[controlNull]] [[displayNull]] [[grpNull]] [[locationNull]] [[taskNull]] [[teamMemberNull]] [[scriptNull]] [[configNull]] [[typeName]] [[isNull]] |
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 11:26, 12 May 2022
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:
- Example 2:
- isNull (objNull createDiaryRecord ["Diary", ["Title", "Text"]]); // true - objNull cannot take diary records
- Example 3:
- Example 4:
Additional Information
- See also:
- objNull controlNull displayNull grpNull locationNull taskNull teamMemberNull scriptNull configNull typeName isNull
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