Wait I will send u the code, sry for the late response, didnt see it. Thanks for your response
Check(Agent:agent):void=
if:
Switch1.GetCurrentState[Agent] = false
then:
Print("False")
else if:
Switch1.GetCurrentState[Agent] = true
then:
Print("True")
# False prints only when the Switch is on ON and True doesn't even worked out, before that I used just else instead as an fail.