Hmm… when I do that, I don’t receive an error, but my output is 0, which is the final “else” in my if/else statement. It’s as if it’s recognizing that it’s valid, but not returning the correct value.
I should add that it is comparing to literally one character at a time. So it is looking at just a set of quotation marks, or just one letter, so there shouldn’t be much room for error. I’m doing this using offset and pointing a variable to a layer’s source text that is displaying just the one letter at a time.
I could copy all the code in here, but I have lots of layers involved that depend on each other, so I thought it would be easier to understand by breaking it down to basics. If you need more information please let me know.
Matt