Well spotted. Ok, I put the quotes back in (!) but it still won't work. What I want to do is IF this AND this THEN that But i can't find anything which notes how to do it! We now have- if (shExpMatch(url, "https://*.xyz.com")) && (myIpAddress() == "10.1.4.4"){ return "DIRECT"; } Anyone have any experience in this? John --- On Thu 12/14, Ding Deng < ding.deng@xxxxxxxxx > wrote: From: Ding Deng [mailto: ding.deng@xxxxxxxxx] To: jhalfpenny@xxxxxxxxxx Date: Thu, 14 Dec 2006 20:52:23 +0800 Subject: Re: proxy.pac 'and' statement "John Halfpenny" <jhalfpenny@xxxxxxxxxx> writes:> Hi All.>> For certain reasons I would like a specific machine to go direct around squid to site xyz.com, this doesn't seem to work in the proxy.pac- any idea why?>> if (shExpMatch(url, "https://*.xyz.com)) && (myIpAddress() == "10.1.4.4"){Try shExpMatch(url, "https://*.xyz.com/*")orshExpMatch(host, "*.xyz.com")> return "DIRECT";>> }>> TIA>> John>> _______________________________________________> Join Excite! - http://www.excite.com> The most personalized portal on the Web! _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web!