Query string?

I have two separate rules for:
http://examplesite.com?someparameter
and
http://examplesite.com

If i say: URL Equals (see above)
Both tags will fire on both pages (since the URL is everything before the ?)
Now how do i extract the querystring and make the tag fire depending on the query string being there or not.

In the support docs i am being promised, that there is a macro for: query:
https://support.google.com/tagmanager/answer/2644341 (scroll down to the URL part) but in the tag manager, i can not find such a thing.

Any help?
Shared publicly