Sorry, but this is incomprehensible to me. Perhaps it has to do with lost formatting (take a look at the
Markup in the Monastery node, you should be able to reformat your node as you want it and make it understandable to us).
If you look for string comparisons, then take a look at the le, gr, lt and gt operators.