! a: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 30: Line 30:
  _a <nowiki>=</nowiki> [[alive]] [[player]];
  _a <nowiki>=</nowiki> [[alive]] [[player]];
   
   
  if not (_a) then
  [[if]] [[not]] (_a) [[then]]
  {
  {
     [[hint]] "The player is dead!";
     [[hint]] "The player is dead!";

Revision as of 10:23, 12 December 2006

Hover & click on the images for description

Description

Description:
not a
Groups:
Uncategorised

Syntax

Syntax:
! a
Parameters:
a: Boolean
Return Value:
Boolean

Examples

Example 1:
The code _a = alive player; if(!_a) then { hint "The player is dead!"; } is the same as _a = alive player; if not (_a) then { hint "The player is dead!"; }

Additional Information

See also:
not

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