Hi Pat,
Can you show the code for your entire swift file that you are working on so that we can see the context in which you are using the If statement? I think I know what you might be trying to do but without all of the code it’s a bit hard to explain to you why that it happening.