a or b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 27: Line 27:
'''Example:'''
'''Example:'''


? ([[not]] ([[canMove]] tank1) '''||''' [[not]] ([[canMove]] tank2)) : [[hint]] "Our armour is being immobilsed!"
[[if]] ([[not]] ([[canMove]] tank1) '''||''' [[not]] ([[canMove]] tank2)) [[then]] {[[hint]] "Our armour is being immobilsed!"}

Revision as of 17:05, 21 May 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!"}