Don't do assignments inside function calls like that, it's confusion.