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

    If/Else If

    Scheduled Pinned Locked Moved
    Comments & Feedback
    3
    4
    171
    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.
    • Aidan_FireA
      Aidan_Fire
      last edited by

      If and else if work fine the way the are now as far as I know, but the else if system doesn't look good to me, it's a bit buggy visually in the behaviour editor mainly, it doesn't always completely attach to the main If and it doesn't move behaviours under it when the main If is dragged around. (Small video example of this below)
      AA9B6E0C-DBB8-4240-93D9-583973E9319D.MP4
      It would be good enough if these minor visual bugs were fixed, but here's a possible idea for an alternative if/else if system:
      810403CB-61C4-445F-B532-515C737DCF72.png
      The tick part is if the statement is correct, the cross part is exactly the same as attaching an Else If with no condition (it outputs when the tick doesn't). I'm not exactly sure what it would look like as you attach multiple behaviours under each connector, maybe the behaviour would just keep getting wider as normal, with a tick or cross above every single behaviour connector line, and all the crosses will always arrange themselves to the right side while the ticks always arrange themselves to the left.

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

        @Jack8680 had another good idea for this: Else If is not a separate behaviour, but instead is a toggle switch inside the If behaviour, switching it on extends an extra part of the If behaviour similar to how Else If is attached to it.

        1 Reply Last reply Reply Quote 0
        • HamedH
          Hamed Admin
          last edited by

          I like the first idea better. If you put it in the behaviour properties, it is hard to visually see your flow of logic

          Jack8680J 1 Reply Last reply Reply Quote 0
          • Jack8680J
            Jack8680 @Hamed
            last edited by

            @Hamed to clarify, my idea was similar to the current if/else if system, but with a toggle to make the else if appear, and only one wire connecting both of them. Something like this: A82A57D7-CAA4-4D34-9DCE-13E00A7E420A.png

            1 Reply Last reply Reply Quote 0
            • First post
              Last post