# How do I reference current level for a branch's condition?

**URL:** <https://forums.unrealengine.com/t/how-do-i-reference-current-level-for-a-branchs-condition/357811>\
**Category:** Editor Scripting\
**Tags:** reference, condition, branch, unreal-engine, level, Blueprint, question\
**Created:** [May 18, 2016, 2:40pm UTC](https://forums.unrealengine.com/t/how-do-i-reference-current-level-for-a-branchs-condition/357811 "2016-05-18T14:40:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ian80](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ian80](https://forums.unrealengine.com/u/ian80)\
**Post date:** [May 18, 2016, 2:40pm UTC](https://forums.unrealengine.com/t/how-do-i-reference-current-level-for-a-branchs-condition/357811/1 "2016-05-18T14:40:03Z")

</div>

I want to switch between two levels with a key press. (There are only two levels in my ‘game’.)

I want to use a branch with the condition “is level A currently open?” - true loads Level B, false loads level A.

Is this possible?

Thanks!

---

<div class="post-metadata">

**Author:** ![thankstipscom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thankstipscom](https://forums.unrealengine.com/u/thankstipscom)\
**Post date:** [May 21, 2016, 4:32am UTC](https://forums.unrealengine.com/t/how-do-i-reference-current-level-for-a-branchs-condition/357811/2 "2016-05-21T04:32:20Z")

</div>

right click → get current level name → pull out the string and type == then type the name of one of the maps

then - \> branch → true do nothing -\>false open “other map name”

---

<div class="post-metadata">

**Author:** ![ian80](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ian80](https://forums.unrealengine.com/u/ian80)\
**Post date:** [May 21, 2016, 2:19pm UTC](https://forums.unrealengine.com/t/how-do-i-reference-current-level-for-a-branchs-condition/357811/3 "2016-05-21T14:19:37Z")

</div>

Yes! Thanks!
