Assign value in if-statement correctly: embraced in parentheses