LZ写的是ASP的语法吧?
应该这样:
if($x>300 || $y>200)
   {
 print("失败!");
   }