How to escape special charaters?
#1
I'm trying to write a boolean but I can't figure out how to get Kodi to read a "!" char. eg:
Code:
StringCompare(Window(Weather).Property(WeatherProvider),Yahoo! Weather)

In looking at the wiki on boolean functions, I can't find anything about what a legal "string" is when used as an argument. Help!

scott s.
.
Reply
#2
Try this instead -

PHP Code:
SubString(Window(Weather).Property(WeatherProvider),Yahoo) + SubString(Window(Weather).Property(WeatherProvider),Weather

You can probably drop the second SubString altogether.
Reply
#3
(2015-02-25, 00:21)scott967 Wrote: In looking at the wiki on boolean functions, I can't find anything about what a legal "string" is when used as an argument. Help!

afaik, the only characters you cant use are ! $ & as they are reserved for special functions.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#4
Thanks to you both. I did go to SubString and it works, but seems like a bandaid. I'm surprised you can't escape those characters somehow.

scott s.
.
Reply
#5
I think escaping (like in other programming languages) is a must have.
Reply
#6
(2015-02-26, 10:26)Cassiel Wrote: I think escaping (like in other programming languages) is a must have.
We don't have basic algebraic operations or string manipulations in the skinning engine either...
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply

Logout Mark Read Team Forum Stats Members Help
How to escape special charaters?0