a or b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (moved command to template)
Line 1: Line 1:
<h2 style="color:#000066">''' ''a'' || ''b'' '''</h2>
{{Command|= Comments
____________________________________________________________________________________________
 
| ofp |= Game name


|1.00|= Game version
____________________________________________________________________________________________


'''Operand types:'''
| a '''or''' b  |= Description
____________________________________________________________________________________________


'''a:''' [[Boolean]]
| ''' ''a'' || ''b'' '''|= Syntax


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


'''Type of returned value:'''
|p2= 'b: [[Boolean]]


[[Boolean]]
|[[Boolean]] |= Return value
____________________________________________________________________________________________
|x1 = <code>[[if]] ([[not]] ([[canMove]] tank1) '''||''' [[not]] ([[canMove]] tank2)) [[then]] {[[hint]] "Our armour is being immobilsed!"}</code>


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


a '''or''' b
}}


See also '''[[or]]'''
<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]] ([[not]] ([[canMove]] tank1) '''||''' [[not]] ([[canMove]] tank2)) [[then]] {[[hint]] "Our armour is being immobilsed!"}
<h2 style="color:#000066">''' ''a'' || ''b'' '''</h2>


[[Category:Scripting Commands|#]]
[[Category:Scripting Commands|#]]

Revision as of 15:07, 14 August 2006

Hover & click on the images for description

Description

Description:
a or b
Groups:
Uncategorised

Syntax

Syntax:
a
Parameters:
a: Boolean
'b: Boolean
Return Value:
Return value needed

Examples

Example 1:
if (not (canMove tank1)

Additional Information

See also:
b

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

a || b