You’re trying to set a Boolean value to a ( red block [“”]) string, like this:
set something to [“true”]
instead of
set something to [true]
With other words,
Hope this helps, but it’s not 100% that this is your problem. If you would show your blocks/ send AIA we could better help You.