From: Michael R. <mi...@re...> - 2009-01-04 14:37:34
|
Well, this is probably years ago, but... but... but... lcd4linux now supports alphanumeric operators, and there are string operators like 'eq', 'ne', 'gt', .... it was easy... (as it#s always easy as soon a you think twice about it) yvecai schrieb: > 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 >> >> > > > -- Michael Reinelt <mi...@re...> http://home.pages.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |