# How to "and" in Verse

**URL:** <https://forums.unrealengine.com/t/how-to-and-in-verse/1856975>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [May 15, 2024, 9:34am UTC](https://forums.unrealengine.com/t/how-to-and-in-verse/1856975 "2024-05-15T09:34:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frechfratze](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frechfratze/32/932717_2.png) [@Frechfratze](https://forums.unrealengine.com/u/Frechfratze)\
**Post date:** [May 15, 2024, 9:34am UTC](https://forums.unrealengine.com/t/how-to-and-in-verse/1856975/1 "2024-05-15T09:34:45Z")

</div>

Hello everyone,

I’m really struggling with Verse and have been trying to find a command that allows me to use “and” for some time now. The “and” command doesn’t seem to work in Verse. How can I work around this or is there a similar command?

I would like to do the following:

```
    if (Team1Players = MaxPlayersPerTeam) and (Team2Players = MaxPlayersPerTeam):
        TeleportPlayersToStart()

```

I also tried using nested if statements without success:

```
    if (Team1Players = MaxPlayersPerTeam):
        if (Team2Players = MaxPlayersPerTeam):
            TeleportPlayersToStart()

```

---

<div class="post-metadata">

**Author:** ![t.tutiya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/t.tutiya/32/924637_2.png) [@t.tutiya](https://forums.unrealengine.com/u/t.tutiya)\
**Post date:** [May 15, 2024, 10:16am UTC](https://forums.unrealengine.com/t/how-to-and-in-verse/1856975/2 "2024-05-15T10:16:35Z")

</div>

Hi. Try it.

```auto
if:
    Team1Players = MaxPlayersPerTeam
    Team2Players = MaxPlayersPerTeam
then:
    TeleportPlayersToStart()

```

---

<div class="post-metadata">

**Author:** ![Frechfratze](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frechfratze/32/932717_2.png) [@Frechfratze](https://forums.unrealengine.com/u/Frechfratze)\
**Post date:** [May 17, 2024, 6:31am UTC](https://forums.unrealengine.com/t/how-to-and-in-verse/1856975/3 "2024-05-17T06:31:29Z")

</div>

THANK YOU!!

---

<div class="post-metadata">

**Author:** ![Benjf29](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/benjf29/32/1204359_2.png) [@Benjf29](https://forums.unrealengine.com/u/Benjf29)\
**Post date:** [June 7, 2024, 4:17pm UTC](https://forums.unrealengine.com/t/how-to-and-in-verse/1856975/4 "2024-06-07T16:17:01Z")

</div>

To add additional info about that, you can handle it like that to :

```auto
        TestLogic: logic = false

        if(TestLogic = true and TestLogic = false){
            Print("case 1")
        }

        if:
            TestLogic = true and TestLogic = false
        then:
            Print("case 2")

        if(
            TestLogic = true
            TestLogic = false
        ) {
            Print("case 3")
        }

        if:
            TestLogic = true
            TestLogic = false
        then:
            Print("case 4")

```

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 7, 2024, 4:17pm UTC](https://forums.unrealengine.com/t/how-to-and-in-verse/1856975/5 "2024-07-07T16:17:43Z")

</div>

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