Use local variable in conditional statement.