Problem with conditional code

I found the answer but don't know how to delete this post from the forum