01.07.2017, 09:03
It's already converted to boolean internally. It will write false if passed value is either boolean false, zero (number) or an empty string or a string '0'. Otherwise it will write true, unless you pass nil, then nothing will happen. Have you tried logging the result of grp.write?