From: yvecai <yv...@gm...> - 2008-01-15 07:18:00
|
I would go for the tilde! Michael Reinelt a écrit : >> In my example, >> visible xmms(Status)=='Playing'?0:1 >> desn't work: the conditional test 'a'=='b'?0:1 desn't seem to work if >> 'a' and 'b' are strings. > > You are right: the operators '==' and '<>' are working on numbers only > (same as it is in Perl) > > Adding 'perlish' string tests 'eq' and 'ne' isn't that easy, for the > evaluator does not support alphanumeric operator tokens. > > Hmmm.... > > any ideas anyone? Is there a senseful operator token for string compare? > > probably the tilde? a ~ b (equal) or a !~ b (not equal) ??? > > > bye, Michael > > |