Using Logical Output of Switch or Checkbox

What is the actual output of a switch or checkbox? Is it a binary logical, or a text string like “true” or “false”? Any how do we make use of the ‘newvalue’ output? I’m not getting this to work at all.

I tried using the ‘newValue’ directly in an ‘if’ statement and it did not evaluate.

I’m writing ‘newValue’ directly to a label right away to verify that it does change and I get “true” or “false” there as expected.

So I try evaluating the output as text, ‘if (newValue = “true”)’.

But this isn’t working either. Any examples/tips out there?

[ I need help with my check box - #5 by tiny_apps
suggests that ‘newValue’ can be evaluated directly]

So the problem seems to have been with the ‘set property’ blocks. There must have been a stray character in the property field (??). I remade the blocks and it works as expected.

Now to rip out the half dozen special debugging labels and trim all the resulting error blocks…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.