logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Else if is broken

    Scheduled Pinned Locked Moved
    Bug Reports
    4
    56
    2.4k
    Loading More Posts
    • 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
      last edited by

      I don't know how to explain this other than to say that the UI and UX of if, else if and else aren't the only things that need addressing.

      There's something very wrong with how they "work" depending on how they're created and edited.

      Rebuilding them, from scratch, resolves these problems, which occur after some time editing the contents of else if and else behaviours.

      D 1 Reply Last reply Reply Quote 0
      • D
        Deeeds @Deeeds
        last edited by

        You'll know this bug is happening when your build times massively increase all of a sudden, for no other explainable reason.

        1 Reply Last reply Reply Quote 0
        • Aidan_FireA
          Aidan_Fire
          last edited by

          Pretty sure I remember a post from a while ago saying that they’re gonna change the way if works a bit, so that if and else if might both be in the one behaviour.

          D 1 Reply Last reply Reply Quote 0
          • D
            Deeeds @Aidan_Fire
            last edited by

            @Aidan-Oxley They're not only clunky, they break. Like... literally stop working. I used a bunch of testing to isolate this. I hope nobody else ever feels this pain. Lost a couple of days to this fucking disaster. Now avoiding all use of ifs and switching sections of code on and off. Messy, fucking tedious to "code" in hyperPad, probably slower executing, but reliable.

            Aidan_FireA 1 Reply Last reply Reply Quote 0
            • Aidan_FireA
              Aidan_Fire @Deeeds
              last edited by

              @Deeeds Lol just stop using Else Ifs, do all the conditions without them. If x = 5, If x ≠ 5 etc.

              D 1 Reply Last reply Reply Quote 0
              • D
                Deeeds @Aidan_Fire
                last edited by

                @Aidan-Oxley You keep saying this, but you keep forgetting the two wonderful part of else if... is else...

                Aidan_FireA 1 Reply Last reply Reply Quote 0
                • Aidan_FireA
                  Aidan_Fire @Deeeds
                  last edited by

                  @Deeeds I know, it’s useful, but everything you can do with an Else If you can do without, using more Ifs instead (with more behaviours though).

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Deeeds @Aidan_Fire
                    last edited by

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

                    Aidan_FireA 1 Reply Last reply Reply Quote 0
                    • Aidan_FireA
                      Aidan_Fire @Deeeds
                      last edited by

                      @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 Reply Quote 0
                      • D
                        Deeeds @Aidan_Fire
                        last edited by

                        @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 Reply Quote 0
                        • Aidan_FireA
                          Aidan_Fire @Deeeds
                          last edited by 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 1 Reply Last reply Reply Quote 0
                          • D
                            Deeeds @Aidan_Fire
                            last edited by

                            @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 Reply Quote 0
                            • Aidan_FireA
                              Aidan_Fire @Deeeds
                              last edited by 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 1 Reply Last reply Reply Quote 0
                              • D
                                Deeeds @Aidan_Fire
                                last edited by 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 3 Replies Last reply Reply Quote 0
                                • Aidan_FireA
                                  Aidan_Fire @Deeeds
                                  last edited by

                                  @Deeeds Challenge accepted.

                                  1 Reply Last reply Reply Quote 0
                                  • Aidan_FireA
                                    Aidan_Fire @Deeeds
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • Aidan_FireA
                                      Aidan_Fire @Deeeds
                                      last edited by

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

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        Deeeds @Aidan_Fire
                                        last edited by

                                        @Aidan-Oxley Where is "else"?

                                        Aidan_FireA 1 Reply Last reply Reply Quote 0
                                        • Aidan_FireA
                                          Aidan_Fire @Deeeds
                                          last edited by

                                          @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 Reply Quote 0
                                          • D
                                            Deeeds @Aidan_Fire
                                            last edited by

                                            @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 Reply Quote 0
                                            • First post
                                              Last post