From: Ben Bleything Date: 2007-07-27T00:21:31+09:00 Subject: Re: help if else On Thu, Jul 26, 2007, Tonyrrr Tonyroor wrote: > if ((( chaine[i+14] == "twincards>false == "twincards>true xsi:nil="1"/")) You're closing one too many sets of parents after the "true" conditional. Also, in the third conditional, you need to either escape the inner quotes or use single quotes: "twincards xsi:nil=\"1\"/" 'twincards xsi:nil="1"/' You might want to rewrite it for better legibility, too. A suggestion: test = chaine[ i + 14 ] if test == 'twincards>falsetrue