! a: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(added example)
mNo edit summary
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''! a''' |= Syntax
| '''!''' a |= Syntax


|p1= a: [[Boolean]] |= Parameter 1
|p1= a: [[Boolean]] |= Parameter 1
Line 19: Line 19:
|x1= The code
|x1= The code


  a <nowiki>=</nowiki> [[alive]] [[player]];
  _a <nowiki>=</nowiki> [[alive]] [[player]];
   
   
  [[if]](!a) [[then]]
  [[if]](!_a) [[then]]
  {
  {
     [[hint]] "The player is dead!";
     [[hint]] "The player is dead!";
Line 28: Line 28:
is the same as
is the same as


  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