HISE Logo Forum
    • Categories
    • Register
    • Login

    get Index from 2 arrays simultaneously?

    Scheduled Pinned Locked Moved Scripting
    50 Posts 3 Posters 2.3k Views
    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.
    • LindonL
      Lindon @ten7kur
      last edited by

      @ten7kur said in get Index from 2 arrays simultaneously?:

      @d-healey said in get Index from 2 arrays simultaneously?:

      @ten7kur That's correct because Item2 has a value of 1 and Item2B has a value of 1

      Thats the whole problem i've been having... Coded it different before but was still at the same standpoint?
      How can i change it?

      TO WHAT!

      HISE Development for hire.
      www.channelrobot.com

      ten7kurT 1 Reply Last reply Reply Quote 0
      • ten7kurT
        ten7kur @Lindon
        last edited by

        @Lindon said in get Index from 2 arrays simultaneously?:

        @ten7kur said in get Index from 2 arrays simultaneously?:

        @d-healey said in get Index from 2 arrays simultaneously?:

        @ten7kur That's correct because Item2 has a value of 1 and Item2B has a value of 1

        Thats the whole problem i've been having... Coded it different before but was still at the same standpoint?
        How can i change it?

        TO WHAT!

        That Item2 >Item2B responds the same as Item1 > Item1A
        It spits ou the same "local Selection = "OK-selected";" @line59

        LindonL 1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @ten7kur
          last edited by

          @ten7kur said in get Index from 2 arrays simultaneously?:

          @Lindon said in get Index from 2 arrays simultaneously?:

          @ten7kur said in get Index from 2 arrays simultaneously?:

          @d-healey said in get Index from 2 arrays simultaneously?:

          @ten7kur That's correct because Item2 has a value of 1 and Item2B has a value of 1

          Thats the whole problem i've been having... Coded it different before but was still at the same standpoint?
          How can i change it?

          TO WHAT!

          That Item2 >Item2B responds the same as Item1 > Item1A
          It spits ou the same "local Selection = "OK-selected";" @line59

          Please please STOP telling us what it is doing - tell us what you want it to do...

          When you press Item 1 and Item1A it should show OK-Selected --which it does..

          when you press Item 1 and item2A - what should it do?
          when you press Item 1 and item3A - what should it do?

          when you press Item 2 and item2A - what should it do?
          when you press Item 2 and item2B - what should it do?

          HISE Development for hire.
          www.channelrobot.com

          ten7kurT 1 Reply Last reply Reply Quote 0
          • ten7kurT
            ten7kur @Lindon
            last edited by

            @Lindon said in get Index from 2 arrays simultaneously?:

            press Item 2 and item2A - what should i

            Item2 >Item2B displays the same thing!

            @d-healey said in get Index from 2 arrays simultaneously?:

            @ten7kur That's correct because Item2 has a value of 1 and Item2B has a value of 1

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @ten7kur
              last edited by

              @ten7kur said in get Index from 2 arrays simultaneously?:

              @Lindon said in get Index from 2 arrays simultaneously?:

              press Item 2 and item2A - what should i

              Item2 >Item2B displays the same thing!

              @d-healey said in get Index from 2 arrays simultaneously?:

              @ten7kur That's correct because Item2 has a value of 1 and Item2B has a value of 1

              Please please STOP telling us what it is doing - tell us what you want it to do...

              When you press Item 1 and Item1A it should show OK-Selected --which it does..

              when you press Item 1 and item2A - what should it do?
              when you press Item 1 and item3A - what should it do?

              when you press Item 2 and item2A - what should it do?
              when you press Item 2 and item2B - what should it do?

              HISE Development for hire.
              www.channelrobot.com

              ten7kurT 1 Reply Last reply Reply Quote 0
              • ten7kurT
                ten7kur @Lindon
                last edited by ten7kur

                @Lindon said in get Index from 2 arrays simultaneously?:

                @ten7kur said in get Index from 2 arrays simultaneously?:

                @Lindon said in get Index from 2 arrays simultaneously?:

                press Item 2 and item2A - what should i

                Item2 >Item2B displays the same thing!

                @d-healey said in get Index from 2 arrays simultaneously?:

                @ten7kur That's correct because Item2 has a value of 1 and Item2B has a value of 1

                Please please STOP telling us what it is doing - tell us what you want it to do...

                When you press Item 1 and Item1A it should show OK-Selected --which it does..

                when you press Item 1 and item2A - what should it do?
                when you press Item 1 and item3A - what should it do?

                when you press Item 2 and item2A - what should it do?
                when you press Item 2 and item2B - what should it do?

                Item2 >Item2B should Not give any output!
                only Item1>Item1A should display "OK-Selected"

                The Index is the culprit
                Perhaps the question is How do i assign a different/continuos Index from Item1 items

                LindonL 1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @ten7kur
                  last edited by

                  @ten7kur please answer the questions in turn... all of them.

                  HISE Development for hire.
                  www.channelrobot.com

                  ten7kurT 1 Reply Last reply Reply Quote 0
                  • ten7kurT
                    ten7kur @Lindon
                    last edited by

                    @Lindon said in get Index from 2 arrays simultaneously?:

                    @ten7kur please answer the questions in turn... all of them.

                    Whats the question? Please read what i posted. Try the last snippet!

                    LindonL 1 Reply Last reply Reply Quote 0
                    • LindonL
                      Lindon @ten7kur
                      last edited by

                      @ten7kur
                      Please please STOP telling us what it is doing - tell us what you want it to do...

                      When you press Item 1 and Item1A it should show OK-Selected --which it does..

                      when you press Item 1 and item2A - what should it do?
                      when you press Item 1 and item3A - what should it do?

                      when you press Item 2 and item2A - what should it do?
                      when you press Item 2 and item2B - what should it do?

                      HISE Development for hire.
                      www.channelrobot.com

                      ten7kurT 1 Reply Last reply Reply Quote 0
                      • ten7kurT
                        ten7kur @Lindon
                        last edited by

                        @Lindon said in get Index from 2 arrays simultaneously?:

                        @ten7kur
                        Please please STOP telling us what it is doing - tell us what you want it to do...

                        When you press Item 1 and Item1A it should show OK-Selected --which it does..

                        when you press Item 1 and item2A - what should it do?
                        when you press Item 1 and item3A - what should it do?

                        when you press Item 2 and item2A - what should it do?
                        when you press Item 2 and item2B - what should it do?

                        Again!
                        Yes! "When you press Item 1 and Item1A it should show OK-Selected --which it does.."
                        Item2 >Item2B should Not give any output!
                        only Item1>Item1A should display "OK-Selected"

                        The Index is the culprit
                        Perhaps the question is How do i assign a different/continuos Index from Item1 items

                        1 Reply Last reply Reply Quote 0
                        • ten7kurT
                          ten7kur @d.healey
                          last edited by

                          @d-healey said in get Index from 2 arrays simultaneously?:

                          @ten7kur That's correct because Item2 has a value of 1 and Item2B has a value of 1

                          How can i correct this?

                          1 Reply Last reply Reply Quote 0
                          • ten7kurT
                            ten7kur @Lindon
                            last edited by

                            @Lindon said in get Index from 2 arrays simultaneously?:

                            Maps[0] = ["Item1A", "Item1B","Item1C" ]
                            Maps[1] = ["Item2A","Item2B"]

                            These items; they do not have an Index? ("Item1A", "Item1B","Item1C" and "Item2A","Item2B") ??

                            I cant make an IF Statement to do for eg;
                            if Maps[0] is selected AND Item1B is selected, ....do something
                            OR
                            If Maps[1] is selected AND Item2B is selected,.... do something else?

                            Thanks!

                            1 Reply Last reply Reply Quote 0
                            • ten7kurT
                              ten7kur
                              last edited by

                              With this example it is working but i have to specify the Text.

                              HiseSnippet 1438.3ocsW0uaaaCDmJMZaVadXcXO.b5O5jwbyrc+XCsHXd0wovqsIFycYCHKnfVh1hMRjBRTw0qnOQ6kXOR6MX6HorjbhSagwpSPh3w6ie2Od77owoBeZVlHEY034KSnHqOydxRtLbPHgwQiN.Y841OijIooXinGsLgjkQCPVV23wJAVM1Eo+7O+3iHQDtOsRDBchf4SeJKlIqjNt+SXQQGRBnOmEWS661ejufOPDIxA7bC6NnDh+4j4ziHJ01wFY8QCCXRQ5DIQRyPV69HQvxIghEbi9mvxXSinpEcQS.GYDenHJPgXkTzfPVTv3U4cFB7x3JV3FFV3qreFKfUJuhM9B8F3JKpyGV671fW25vqy6O7rpAucMv6l1S7SYIxpcTX6SsGwgCpYD3HnNrL5h14u9X6ABPCtbuXx4zCSgEkV3c+NcZiuWmNsdXSmlNe22geLUhkgrL7rTQLNSDSWDRSoXOJSBOfowSoA.vwWvHXF2OJOfhEo3g74LNcuHAI3mmb7QMctfjhCHRBdebSmW2zACebG.TzbQ5RbW2GXDcZwNijzXbWha65q6QbMKOq8kcPuM6foWxASuVGbmM6.+K4.+UN.67FMGo9AJXyjXUFdBitHQjJ6Bo4JZdNUNPDmH3vBO2RMbUb7Usr26zxdtkmN+VJSRwjnH74zkfahxoYvofTfIbLIMkrrdH7M4JCzYe7omocxLQpW.Xh9rokI2pzauj7rPufx3MQWMP0QiC2GyvDHd.w.0GvgtZqYrTU3Jvp1piD.HWJxwgjKnX.buT.ADTNVsffyjoL97lNkTydYTHe090scc3nLz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osrFxIPUlthD8e.+T.dDA
                              

                              On line65 ; instead of:
                              "if (cat == "Category 1" && item == "Item 1a")"
                              Is it not possible to specify "cat" as [0] and "item" as [0]? instead of text??
                              Thanks!
                              Sorry for the confusion!

                              1 Reply Last reply Reply Quote 0
                              • ten7kurT
                                ten7kur
                                last edited by

                                Figured out how to assign a different Index.
                                Thanks

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

                                25

                                Online

                                1.7k

                                Users

                                11.8k

                                Topics

                                102.5k

                                Posts