Oh and even in Java you need == for comparison operator. Perhaps you just forgot.