How to "and" in Verse

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()
1 Like

Hi. Try it.

if:
    Team1Players = MaxPlayersPerTeam
    Team2Players = MaxPlayersPerTeam
then:
    TeleportPlayersToStart()
5 Likes

THANK YOU!!

1 Like

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

        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")
3 Likes

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