Checking for specific navigation url

When creating the navigation file, I want to check if an url is matching a specific string. How do I do that? (If it’s matching, do not render it at all.

This does not work:


    {{#foreach navigation}}
    {{#has url=“http://thisistheurl.com/example”}}
    {{else}}
    <li class="{{link_class for=(url) class=(concat “nav-” slug)}}" role=“menuitem”><a href="{{url absolute=“true”}}">{{label}}
    {{/has}}
    {{/foreach}}