> > | hi all > > | i want to check a condition and if true should return a filename > > | string from a list.if the condition is false i am returning a > > | "" (string literal).. Identity is the strictest test, and you can't define your own. Lots of things can evaluate to True. Only None is None. Does that help?