View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#451
Originally Posted by slarti View Post
Thanks, that works. I guess something changed in the way this works with 1.7?
It's always been that way

{propertyname?abc} is "output abc if propertyname is not empty"
{propertyname!abc} is "output abc if propertyname is empty"

The "not empty" part is also why {wazapp-status?abc} doesn't do what you expect - it won't be empty when you are offline (it will evaluate to "offline" instead).

The reason why the "?" doesn't output the property name is that you can do something like this:

Code:
{song?Now playing: }{song}{song?
}
 

The Following User Says Thank You to thp For This Useful Post: