If the string you are looking for is added by a mod, the strref will differ across installations, so you can't do a numerical comparison. You'd have to fetch the string with READ_STRREF instead and do a string comparison to see if the text matches.

If the string is part of the vanilla game, its strref number will always be the same, so you can just check if the number in the file matches the known value. This has a benefit in that it works regardless of the game's language.

To do a numeric comparison, you can use name == 123. The opposite would be name != 123.

To do a string comparison, you can use ~%name%~ STRING_EQUAL ~abc~. The opposite would be NOT ~%name%~ STRING_EQUAL ~abc~.