Muliple if statement

I expect it simply to return if one of the conditions is met.