get Index from 2 arrays simultaneously?



  • Hi Hi! How is everyone?

    Searched Hi and low! cant find an answer..

    Im trying to do an IF Statement for 2 variables, and if its true to print an OK in Console.
    I've tried everything! indexOf, regex, contains, include. Ive lost track of everything ive tried. I know im doing something stupid!...

    Ive got 2 Viewports. One lists items from the other.
    Im trying to get a Console.print "OK-selected" [line58] if both viewports = to the specified Index but I cant get a response from Viewport1.
    How can i reference Viewport1 selection on Viewport2Control?

    Thanks!



  • If (viewport1 == someValue && viewport2 == someValue)
        Do the thing;
    


  • oops

    HiseSnippet 6274.3oc68rEaabkcCk73XIG+LtIoXSKlJDDHW4vv2hbMBzHIpW1TYnHksrS7B6QjWRNwCmgdlgTldQPEZQv1hBT2EEnn9mVmlh9YP2Bzhr+rwXA1OZQJ5isKBZ69gS2hftMa2l9QPw1Vf164dGNblgThiknd5QeXy6qy8bO2y4dO264NmSVM0BHccUMl.CsbyZHl.OKa9lJFUlthnjByBoYBbJ1YUkkTmRTWOxMCElYpl0v+DUjIPfAmCpTfgNBC4uuXhoDkEUJfZmECyUUkJfxHUUxnctY4urjr7rhEQKKU0VsiwuPAUkoUkUqiQnAYCwTSrvsEKidCQnZCvxD3nyTTxPUKugnARmIvQlRsXy7UTWSgV+qJoKspLBRDlIOFPzrwifh.FC4xLcEI4hYaMv0YXBvlsMYXPJY3brKJUTxJ+1jiSSJfqcKrSOBLvlgdgsidg7N5EvF5cDJ5cF17EzjpYztD.2NN6BJFHsRh3o.6nEstLC7eeT1oUw0PwHXUwailUCmvpEiFOTnKvEOdnyewgG90dMNiJHtZhJH4gwyI5FbMD03tpDZsZpZF5buNWKHUFYLsZ0ZpJ3DiNhUMFA.C.mF.C.mNRFUvPRUgqnjnrZYa.MOoHTwELPUgI5MD1tqHtK33LwzhR50jEahJxofKY3tfyg6INGF.nI7j0kL3TKwU.OQVVUSBo2EPFomfLhMPVfVSc.rhs.bSLQB.ILl.L7sFg7qIG4BzeLUqeL8HesKZUyHV0LRqZFYJnBjZrnXMXB5sH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E6wYjcFp.R.qqhJvfL++.+npV4B
    
    Content.makeFrontInterface(500, 550);
    
    // the panel
    const var Viewports = Content.getComponent("Viewports");
    
    
    // voice selection dialog
    const var SelectedItemName = Content.getComponent("SelectedItemName");  // the displayed name
    
    const var Viewport1 = Content.getComponent("Viewport1"); // the lsit of categories
    const var Viewport2 = Content.getComponent("Viewport2"); // the contents of a category
    
    
    var Item1 = ["Item1A","Item1B","Item1C"];
    var Item2 = ["Item2A","Item2B"];
    
    var Maps = [Item1, Item2];
    
    
    inline function onSelectedItemControl(component, value)
    {
    	//show 
    	Viewports.showControl(true);
    };
    Content.getComponent("SelectedItem").setControlCallback(onSelectedItemControl);
    
    
    
    inline function onSelectedItem__DismissControl(component, value)
    {
    	//hide dialog
    	Viewports.showControl(false);
    };
    Content.getComponent("SelectedItem__Dismiss").setControlCallback(onSelectedItem__DismissControl);
    
    
    inline function onViewport1Control(component, value)
    {
        local myArray;
        myArray = Maps[value];
    	//set the sample map list based on the category
    	Viewport2.set("items",myArray.join("\n"));
    };
    Content.getComponent("Viewport1").setControlCallback(onViewport1Control);
    
    
    
    
    inline function onViewport2Control(component, value)
    {
    	SelectedItemName.set("text",Maps[Viewport1.getValue()][value]);
    	
    	//print selection Index
    	Console.print("selected:" + value);
    	
    	// if both Indexs are correct, then print "OK-selected"
    	if (Maps[value] == 0 && value == 0) {
    	    local Selection = "OK-selected";
    	    Console.print("selecton:" + Selection);
    	}	
    };
    Content.getComponent("Viewport2").setControlCallback(onViewport2Control);
    
    

    The problem is at bottom @onViewport2Control



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

    If (viewport1 == someValue && viewport2 == someValue)
        Do the thing;
    

    Wow so fast i couldnt even take a piss :))

    if (Viewport1 == 0 && value == 0)
    

    Nope



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

    Nope

    Then I don't understand your question.



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

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

    Nope

    Then I don't understand your question.

    Changing line57 to :if (Viewport1 == 0 && value == 0), doesnt make any difference..



  • @ten7kur I wouldn't expect it to, what I wrote was pseudo code, you need to replace it with real code.



  • Thats why im asking for help. I cant figure it out. Like i said i tried many things, im lost



  • Why are you storing value in a local array?

        local myArray;
        myArray = Maps[value];
    	//set the sample map list based on the category
    	Viewport2.set("items",myArray.join("\n"));
    


  • Like i said, i need help, im at loss what to do..
    Tried so many things..



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

    Like i said, i need help, im at loss what to do..
    Tried so many things..

    If you could point the right direction id really appreciate it!!



  • Could you reword the question because I'm still not clear what you're trying to do. The thread title is get Index from 2 arrays simultaneously? but then your post is talking about viewports.



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

    Could you reword the question because I'm still not clear what you're trying to do. The thread title is get Index from 2 arrays simultaneously? but then your post is talking about viewports.

    The last part of the script: @line49

    inline function onViewport2Control(component, value)
    {
    

    Im trying to get 2 variables to say = yes
    (inside the inline_function)
    I cant get it to work



  • This post is deleted!


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

    Maps doesn't exist inside this function.

    thats what i thought.
    How can i get at it?

    EDIT: precisely , how can i access a variable outside the inline function?



  • @ten7kur You commented faster than I could delete my post 😛



  • I think this is where the problem is.

    var Item1 = ["Item1A","Item1B","Item1C"];
    var Item2 = ["Item2A","Item2B"];
    
    var Maps = [Item1, Item2];
    

    This is what maps contains

    [
      [
        "Item1A",
        "Item1B",
        "Item1C"
      ],
      [
        "Item2A",
        "Item2B"
      ]
    ]
    

    Is that what you want?



  • hmm
    Im trying to get the index of both arrays.
    The INDEX of var Item1 and then the INDEX of Item1A, Item1b, Item1C.

    So if var Item1 is true AND var Item1A is true, i can do something.



  • @ten7kur getting an INDEX of an item in an array? will return you a position in the array - not a true/false answer (well apart from the first two ..)

    your code says;

    if (Maps[value] == 0 && value == 0)

    where Maps[value] will always = another array , not zero...



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

    @ten7kur getting an INDEX of an item in an array? will return you a position in the array - not a true/false answer (well apart from the first two ..)

    your code says;

    if (Maps[value] == 0 && value == 0)

    where Maps[value] will = another array , not zero...

    Buts thats what i want, is the Position in the array. Then i can do a true/false if. Dont i? Ive tried everyting(as in my first post described)
    All credit to @lindon , thats where this code comes from


Log in to reply
 

7
Online

647
Users

2.6k
Topics

21.4k
Posts