a != b: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 35: Line 35:
[[group]] [[player]] '''!=''' [[group]] soldierOne
[[group]] [[player]] '''!=''' [[group]] soldierOne


? (([[fuel]] truck1) '''!=''' 1) : [[hint]] "Truck1 has less than a full tank of fuel."
[[if]] ([[fuel]] truck1 '''!=''' 1) [[then]] {[[hint]] "Truck1 has less than a full tank of fuel."}

Revision as of 17:55, 21 May 2006


a != b


Operand types:

a: Number, Side, String, Object or Group

b: Number, Side, String, Object or Group

Type of returned value:

Boolean

Description:

a not equal to b


Examples:

counter != 4

side player != west

nameofplayer != "John Doe"

vehicle player != player

group player != group soldierOne

if (fuel truck1 != 1) then {hint "Truck1 has less than a full tank of fuel."}