Check if a Cookie exists

if( Tools.getCookie('testcookie') ){
   return true;
}

Check if a not Cookie exists

if( !Tools.getCookie('testcookie') ){
   return true;
}

Target on a specific Cookie Value

if( Tools.getCookie('testcookie') == 'testvalue' ){
   return true;
}

Check if a Cookie contains a Value

if( Tools.getCookie('testcookie').indexOf("estvalu") != -1 ){
   return true;
}

 

Did this answer your question?