Boolean Evaluation
When using BOOL values in scriptOps, they may sometimes evaluate as numeric “0” or “1”.
So you may need to convert those to “true” or “false” explicity.