a && b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|#]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|#]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|#]]
 
[[Category:Scripting Commands ArmA|#]]
| ofp |= Game name


|1.00|= Game version
____________________________________________________________________________________________


<h2 style="color:#000066">''' ''a'' && ''b'' '''</h2>
| a '''and''' b


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


'''Operand types:'''
| '''a && b''' |= Syntax


'''a:''' [[Boolean]]
|p1= a: [[Boolean]] |=


'''b:''' [[Boolean]]
|p2= b: [[Boolean]] |=


'''Type of returned value:'''
| [[Boolean]] |= Return value
____________________________________________________________________________________________


[[Boolean]]
|x1= <pre>if (alive player && alive leader player) then {hint "Both the player and his leader are alive"}</pre> |=


'''Description:'''
| [[and]] |= See also


a '''and''' b
}}


This is exactly the same as a [[and]] b
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


[[if]] ([[alive]] [[player]] '''&&''' [[alive]] [[leader unit|leader]] [[player]]) [[then]] {[[hint]] "Both the player and his leader are alive"}
[[Category:Scripting Commands|#]]
[[Category:Scripting Commands OFP 1.96|#]]
[[Category:Scripting Commands OFP 1.46|#]]
[[Category:Scripting Commands ArmA|#]]

Revision as of 21:33, 1 August 2006

Hover & click on the images for description

Description

Description:
a and b 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:
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