a or b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|#]]
[[Category:Scripting Commands OFP 1.96|#]]
[[Category:Scripting Commands OFP 1.46|#]]
[[Category:Scripting Commands ArmA|#]]
[[Category:Command_Group:_Math]]
<h2 style="color:#000066">''' ''a'' || ''b'' '''</h2>
<h2 style="color:#000066">''' ''a'' || ''b'' '''</h2>


Line 28: Line 22:


[[if]] ([[not]] ([[canMove]] tank1) '''||''' [[not]] ([[canMove]] tank2)) [[then]] {[[hint]] "Our armour is being immobilsed!"}
[[if]] ([[not]] ([[canMove]] tank1) '''||''' [[not]] ([[canMove]] tank2)) [[then]] {[[hint]] "Our armour is being immobilsed!"}
[[Category:Scripting Commands|#]]
[[Category:Scripting Commands OFP 1.96|#]]
[[Category:Scripting Commands OFP 1.46|#]]
[[Category:Scripting Commands ArmA|#]]
[[Category:Command_Group:_Math|#]]

Revision as of 21:16, 9 August 2006

a || b


Operand types:

a: Boolean

b: Boolean

Type of returned value:

Boolean

Description:

a or b

See also or


Example:

if (not (canMove tank1) || not (canMove tank2)) then {hint "Our armour is being immobilsed!"}