a && b: Difference between revisions

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


? ([[alive]] [[player]] '''&&''' [[alive]] [[leader unit|leader]] [[player]]) : [[hint]] "Both the player and his leader are alive"
[[if]] ([[alive]] [[player]] '''&&''' [[alive]] [[leader unit|leader]] [[player]]) [[then]] {[[hint]] "Both the player and his leader are alive"}

Revision as of 17:56, 21 May 2006


a && b


Operand types:

a: Boolean

b: Boolean

Type of returned value:

Boolean

Description:

a and b

This is exactly the same as a and b


Example:

if (alive player && alive leader player) then {hint "Both the player and his leader are alive"}