Object.operator !=

static operator != (x : Object, y : Object) : boolean

Description

Compares if two objects refer to a different object

JavaScript
var target : Transform;
function Update () {
// the target object does not refer to the same object as our transform
if (target != transform) {
print("Another object");
}
}