# Switch state not false or true

**URL:** <https://forums.unrealengine.com/t/switch-state-not-false-or-true/790835>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite\
**Created:** [March 14, 2023, 7:39pm UTC](https://forums.unrealengine.com/t/switch-state-not-false-or-true/790835 "2023-03-14T19:39:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Conan\_Reis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/conan_reis/32/1016955_2.png) [@Conan\_Reis](https://forums.unrealengine.com/u/Conan_Reis)\
**Post date:** [March 18, 2023, 1:11am UTC](https://forums.unrealengine.com/t/switch-state-not-false-or-true/790835/4 "2023-03-18T01:11:35Z")

</div>

I didn’t see until now that this question was double posted.

> [@Major - Switch device functions yielding the wrong types](https://forums.unrealengine.com/t/major-switch-device-functions-yielding-the-wrong-types/791175/2):
>
> In the case of GetCurrentState, the decides effect is used, rather than returning logic. To have your code work, you would need to update it to if (not Switch.GetCurrentState[Agent]): Print("meow") else if (Switch.GetCurrentState[Agent]): Print("meow") GetCurrentState will fail (rather than return false) or succeed (rather than return true). Related to use of tuple() with listenable: this is to indicate Await (a method of the superinterface awaitable) produces value () - note () is a…

So essentially the same answer.

---

_[View the full topic](https://forums.unrealengine.com/t/switch-state-not-false-or-true/790835)._
