a && b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fixed link)
m (added description)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| a '''and''' b
| Returns whether to values both are <tt>true</tt>.


This is exactly the same as a [[and]] b |= Description
This is exactly the same as a [[and]] b |= Description
Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[[if]] ([[alive]] [[player]] && [[alive]] [[leader]] [[player]]) [[then]] {[[hint]] "Both the player and his leader are alive"}</code> |=
|x1= Checks whether the player '''and''' his leader are alive.
 
[[if]] ([[alive]] [[player]] && [[alive]] [[leader]] [[player]]) [[then]]  
{
    [[hint]] "Both the player and his leader are alive";
} |=


| [[and]] |= See also
| [[and]] |= See also

Revision as of 10:33, 12 December 2006

Hover & click on the images for description

Description

Description:
Returns whether to values both are true. This is exactly the same as a and b
Groups:
Uncategorised

Syntax

Syntax:
a && b
Parameters:
a: Boolean
b: Boolean
Return Value:
Boolean

Examples

Example 1:
Checks whether the player and his leader are alive. if (alive player && alive leader player) then { hint "Both the player and his leader are alive"; }

Additional Information

See also:
and

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