Add check for assignment in ifstatement

in progress for more rules