We're both doing the same thing, but using different notation. The {get ...} notation is just a quicker equivalent.
First, I'd check what the function is returning, by using a message statement.
Be especially careful about using "=" as the test. Often "BEGINS" is a better option.