I agree with @awsaba that constructs like this are not good.  Please break into one line for assignment, one line for conditional.