Fix #144 - don't use the return value of = in conditional expressions