the function call just partly work

I am sorry, I copy wrong code, actually my code is "==" instead of "=", but it still not work completely.