View Single Post
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#281
Originally Posted by ruff View Post
value("true").toInt() == 1
I was just a little bit sick in my mouth

Can you replicate that? Everyone seems to be getting a 0 there, including me, but stupidly I didn't notice before because I'd repaired my watch and so had a fresh file. I assumed that converting it directly to an int would return 0 for any string that wouldn't parse as an int, for the sake of the children. I've added a bit of a dirty hack to skip the parsing and return Enabled when the value is "true", but I'd remove it if I could.
 

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