Conditionally Comparing Strings and Numbers