a less= b: Difference between revisions

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


? (([[fuel]] truck1) '''<=''' 0) : [[hint]] "Truck1 has no fuel left."
[[if]] ([[fuel]] truck1 '''<=''' 0) [[then]] {[[hint]] "Truck1 has no fuel left."}

Revision as of 17:59, 21 May 2006


a <= b


Operand types:

a: Number

b: Number

Type of returned value:

Boolean

Description:

a less than or equal to b


Example:

if (fuel truck1 <= 0) then {hint "Truck1 has no fuel left."}