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.5) : [[hint]] "Truck1 has less than half a tank of fuel left."
[[if]] ([[fuel]] truck1 '''<''' 0.5) [[then]] {[[hint]] "Truck1 has less than half a tank of 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 b


Example:

if (fuel truck1 < 0.5) then {hint "Truck1 has less than half a tank of fuel left."}