Target on Cookies

Check if a Cookie exists

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

Check if a Cookie does not exist

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;
}