Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Bug Reports
  3. Else if is broken

Else if is broken

Scheduled Pinned Locked Moved Bug Reports
56 Posts 4 Posters 23.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Deeeds

    @Aidan-Oxley this isn't true when you don't have AND or OR

    Aidan_FireA Offline
    Aidan_FireA Offline
    Aidan_Fire
    wrote on last edited by
    #9

    @Deeeds Give me a condition that you think could only work using an Else If. I could do it without Else If, using a bunch of Ifs.

    D 1 Reply Last reply
    0
    • Aidan_FireA Aidan_Fire

      @Deeeds Give me a condition that you think could only work using an Else If. I could do it without Else If, using a bunch of Ifs.

      D Offline
      D Offline
      Deeeds
      wrote on last edited by
      #10

      @Aidan-Oxley else... try just to do else... around ranges.

      You'll wind up in a sea of spaghetti not even you can debug in hyperPad.

      Aidan_FireA 1 Reply Last reply
      0
      • D Deeeds

        @Aidan-Oxley else... try just to do else... around ranges.

        You'll wind up in a sea of spaghetti not even you can debug in hyperPad.

        Aidan_FireA Offline
        Aidan_FireA Offline
        Aidan_Fire
        wrote on last edited by Aidan_Fire
        #11

        @Deeeds All my projects when needing conditionals use Ifs only, I never use Else If. It doesn’t cause mess/spaghetti, it causes one or two extra behaviours.

        D 1 Reply Last reply
        0
        • Aidan_FireA Aidan_Fire

          @Deeeds All my projects when needing conditionals use Ifs only, I never use Else If. It doesn’t cause mess/spaghetti, it causes one or two extra behaviours.

          D Offline
          D Offline
          Deeeds
          wrote on last edited by
          #12

          @Aidan-Oxley Again... try doing else, around ranges. It's not nearly as simple as the situations you're describing.

          Aidan_FireA 1 Reply Last reply
          0
          • D Deeeds

            @Aidan-Oxley Again... try doing else, around ranges. It's not nearly as simple as the situations you're describing.

            Aidan_FireA Offline
            Aidan_FireA Offline
            Aidan_Fire
            wrote on last edited by Aidan_Fire
            #13

            @Deeeds I’m pretty sure I have. You wanna screenshot? It’s spaghetti, no matter if I use Else Ifs or not. And if for some reason I haven’t, I’m very sure I can.

            D 1 Reply Last reply
            0
            • Aidan_FireA Aidan_Fire

              @Deeeds I’m pretty sure I have. You wanna screenshot? It’s spaghetti, no matter if I use Else Ifs or not. And if for some reason I haven’t, I’m very sure I can.

              D Offline
              D Offline
              Deeeds
              wrote on last edited by Deeeds
              #14

              @Aidan-Oxley

              You're going to regret this...

              Here's just two:

              @Aidan-Oxley

              If speed is less than 10 but more than 2 OR less than -2 and more than -10, AND rotation is greater than 20 but less than 40 OR less than -20 and greater than -40

              else if speed is less than 20 but more than 10 OR less than -10 and more than -20 AND rotation is greater than 40 but less than 80 OR less than -40 but more than -80

              else

              etc...

              Aidan_FireA 3 Replies Last reply
              0
              • D Deeeds

                @Aidan-Oxley

                You're going to regret this...

                Here's just two:

                @Aidan-Oxley

                If speed is less than 10 but more than 2 OR less than -2 and more than -10, AND rotation is greater than 20 but less than 40 OR less than -20 and greater than -40

                else if speed is less than 20 but more than 10 OR less than -10 and more than -20 AND rotation is greater than 40 but less than 80 OR less than -40 but more than -80

                else

                etc...

                Aidan_FireA Offline
                Aidan_FireA Offline
                Aidan_Fire
                wrote on last edited by
                #15

                @Deeeds Challenge accepted.

                1 Reply Last reply
                0
                • D Deeeds

                  @Aidan-Oxley

                  You're going to regret this...

                  Here's just two:

                  @Aidan-Oxley

                  If speed is less than 10 but more than 2 OR less than -2 and more than -10, AND rotation is greater than 20 but less than 40 OR less than -20 and greater than -40

                  else if speed is less than 20 but more than 10 OR less than -10 and more than -20 AND rotation is greater than 40 but less than 80 OR less than -40 but more than -80

                  else

                  etc...

                  Aidan_FireA Offline
                  Aidan_FireA Offline
                  Aidan_Fire
                  wrote on last edited by
                  #16
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • D Deeeds

                    @Aidan-Oxley

                    You're going to regret this...

                    Here's just two:

                    @Aidan-Oxley

                    If speed is less than 10 but more than 2 OR less than -2 and more than -10, AND rotation is greater than 20 but less than 40 OR less than -20 and greater than -40

                    else if speed is less than 20 but more than 10 OR less than -10 and more than -20 AND rotation is greater than 40 but less than 80 OR less than -40 but more than -80

                    else

                    etc...

                    Aidan_FireA Offline
                    Aidan_FireA Offline
                    Aidan_Fire
                    wrote on last edited by
                    #17

                    @Deeeds How’s this?
                    0_1513228399729_427A2EB9-A9AD-4546-8E3E-0D0A290F2616.png

                    D 1 Reply Last reply
                    0
                    • Aidan_FireA Aidan_Fire

                      @Deeeds How’s this?
                      0_1513228399729_427A2EB9-A9AD-4546-8E3E-0D0A290F2616.png

                      D Offline
                      D Offline
                      Deeeds
                      wrote on last edited by
                      #18

                      @Aidan-Oxley Where is "else"?

                      Aidan_FireA 1 Reply Last reply
                      0
                      • D Deeeds

                        @Aidan-Oxley Where is "else"?

                        Aidan_FireA Offline
                        Aidan_FireA Offline
                        Aidan_Fire
                        wrote on last edited by
                        #19

                        @Deeeds It’s implied by the behaviours. Both conditions cannot be met at the same time, so I don’t need any else. If one of the sides of this particular Else happens, the other cannot.

                        D 1 Reply Last reply
                        0
                        • Aidan_FireA Aidan_Fire

                          @Deeeds It’s implied by the behaviours. Both conditions cannot be met at the same time, so I don’t need any else. If one of the sides of this particular Else happens, the other cannot.

                          D Offline
                          D Offline
                          Deeeds
                          wrote on last edited by
                          #20

                          @Aidan-Oxley Huh?

                          I'm confused.

                          Else, in my example, is everything else. Outside these ranges.

                          You've helped me see that you and I should help the lads design a better conditional node.... behaviour.

                          Aidan_FireA 3 Replies Last reply
                          0
                          • D Deeeds

                            @Aidan-Oxley Huh?

                            I'm confused.

                            Else, in my example, is everything else. Outside these ranges.

                            You've helped me see that you and I should help the lads design a better conditional node.... behaviour.

                            Aidan_FireA Offline
                            Aidan_FireA Offline
                            Aidan_Fire
                            wrote on last edited by
                            #21

                            @Deeeds The conditions you asked me to make can only be one or the other, there was no reason for me to put anything in to do “Else”. Speed cannot be between 2 and 10 but also 10 and 20 at the same time, so I don’t need to have an Else between them. Makes sense?

                            1 Reply Last reply
                            0
                            • D Deeeds

                              @Aidan-Oxley Huh?

                              I'm confused.

                              Else, in my example, is everything else. Outside these ranges.

                              You've helped me see that you and I should help the lads design a better conditional node.... behaviour.

                              Aidan_FireA Offline
                              Aidan_FireA Offline
                              Aidan_Fire
                              wrote on last edited by Aidan_Fire
                              #22

                              @Deeeds Oooohhh I think I understand now, you have 2 else’s between 3 bunches of conditions. You want another condition for if all that junk isn’t true. Gimme a sec I’ll give another screenshot.

                              1 Reply Last reply
                              1
                              • D Deeeds

                                @Aidan-Oxley Huh?

                                I'm confused.

                                Else, in my example, is everything else. Outside these ranges.

                                You've helped me see that you and I should help the lads design a better conditional node.... behaviour.

                                Aidan_FireA Offline
                                Aidan_FireA Offline
                                Aidan_Fire
                                wrote on last edited by Aidan_Fire
                                #23

                                @Deeeds This could’ve been done with a tonne more Ifs, but I can just disable behaviours, then enable them again once they’ve been missed. Taking advantage of how hyperPad executes behaviours.
                                0_1513239623056_1A2718E9-A2E7-4FE9-906B-EEB164B49384.png

                                D 1 Reply Last reply
                                2
                                • Aidan_FireA Aidan_Fire

                                  @Deeeds This could’ve been done with a tonne more Ifs, but I can just disable behaviours, then enable them again once they’ve been missed. Taking advantage of how hyperPad executes behaviours.
                                  0_1513239623056_1A2718E9-A2E7-4FE9-906B-EEB164B49384.png

                                  D Offline
                                  D Offline
                                  Deeeds
                                  wrote on last edited by Deeeds
                                  #24

                                  @Aidan-Oxley I'm 99% sure your Else, in this situation, will get invoked (called) before the ifs reach a conclusion that they should turn your Else behaviour off.

                                  Aidan_FireA 1 Reply Last reply
                                  0
                                  • D Deeeds

                                    @Aidan-Oxley I'm 99% sure your Else, in this situation, will get invoked (called) before the ifs reach a conclusion that they should turn your Else behaviour off.

                                    Aidan_FireA Offline
                                    Aidan_FireA Offline
                                    Aidan_Fire
                                    wrote on last edited by
                                    #25

                                    @Deeeds Already checked that. I gave speed and rotation a value, then made Else and Stuff behaviour bundles have some visual effect behaviours, and it all worked as intended.

                                    1 Reply Last reply
                                    0
                                    • Aidan_FireA Offline
                                      Aidan_FireA Offline
                                      Aidan_Fire
                                      wrote on last edited by
                                      #26

                                      I really like how neat the execute sequence of behaviours is!

                                      D 1 Reply Last reply
                                      0
                                      • Aidan_FireA Aidan_Fire

                                        I really like how neat the execute sequence of behaviours is!

                                        D Offline
                                        D Offline
                                        Deeeds
                                        wrote on last edited by
                                        #27

                                        @Aidan-Oxley Where are you using execute sequence here?

                                        Aidan_FireA 1 Reply Last reply
                                        0
                                        • D Deeeds

                                          @Aidan-Oxley Where are you using execute sequence here?

                                          Aidan_FireA Offline
                                          Aidan_FireA Offline
                                          Aidan_Fire
                                          wrote on last edited by
                                          #28

                                          @Deeeds Sorry, I mean the order in which behaviours execute under an event, not the Execute Sequence behaviour. Like how they do each branch first, then move on left to right, but only after each whole branch is finished.

                                          D 1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Search