If statements using R Snippet - Weird Behavoir

Anyone had weird behavior with If statements in Knime using the R snippet. I’m doing something really basic (just comparing a variable to a number), and getting some strange error messages back from Knime about "missing a value where TRUE/FALSE needed). I run the same thing in R without a problem.

Can you please post the script you have entered inside the R Snippet node. Are you using the Local or Remote R node? Thanks, Thomas