As Ger21 said, what you are seeing is a side effect of the the slightly odd way the cypress basic script editor displays values.
This "editor feature" often leads me to write things differently - try this:
‘ Show the user the state of the Y HOME input
Dim B as Boolean
B = IsActive(YHOME)
If B Then
MsgBox “Y HOME is active”
Else
MsgBox “Y HOME is inactive”
End If
Yeah, I know that the above is not considered "good programming style"... but you can hover the cursor over the B variable and see if it is true or false... you get to choose between style and being able able to see the variable value while debugging.
Dave