It is currently April 26th, 2024, 8:21 am

Trying to show / hide base on content

Get help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 22630
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Trying to show / hide base on content

Post by jsmorley »

nodiaque wrote: September 16th, 2019, 3:21 pm Oh wow, that worked! Was trickier then I though, I'm not very good with reg expr. Thanks a lot! I bet you could optimize my overall skin with your skill!
Regular expression was designed by the devil... ;-)
User avatar
jsmorley
Developer
Posts: 22630
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Trying to show / hide base on content

Post by jsmorley »

To be honest, the Registry measure should not return a string of "0" if the key is not found. It should return an empty string. "0" can be and sometimes is a perfectly valid value for a registry key, and this does not allow you to distinguish between "failure" and "Yeah, it's just an actual zero". Oh well... Bad, bad design back in the day. Forgivable I guess, since IfMatch didn't exist then, but still a bad design.