From: Michael R. <mi...@re...> - 2008-01-14 10:01:10
|
> 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 -- Michael Reinelt <mi...@re...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |