Function : windowEncludes

The windowExcludes is the inverse of windowIncludes. It is a case-sensitive function that is used to check if the current base url does not match the list of supplied urls. Since index pages can either be empty (i.e "") or "index", a frontslash ("/") can be used to denote an index page.

The condition below tests if the current url address does not match the specified url

  if( windowExcludes('some/url') ){

     // url is not "some/url"

  }
                  


The condition below tests if the current url address does not exists in the list of the specified urls
  
  $validUrls = ['some/url1', 'some/url2']; 

  if( windowExcludes($validUrl) ){

     // current url is not in accepted url's list

  }