For the next version, I have added a JavaScript in Front Browser variant to the Script Condition to allow this sort of thing to be done directly in a condition. For example:
For more information, see the wiki Searching the Forum for Answers section.