First time here? Check out the FAQ!
x

arrayIndex: !Index Not Choosing Only One Array

0 votes
240 views

Good Morning,

learning about the nextRandomFromAllArrays: I have encountered a problem.

If I do : !Trigger nextRandomFromAllArrays: #( #(1 2 3 4) #(5 6 7 8) #(123 642 227 278) ) arrayIndex: !Index

It choses all the array under the value (using the !Index).
Value 1 goes through 0 and 1 arrays.
Value 2 goes through 0, 1 and 2 array.

On the other hand, if I do this :

!Trigger nextRandomFromAllArrays: #( #(1 2 3 4) #(5 6 7 8) #(123 642 227 278) ) arrayIndex: 2

It works correctlly and array 2 (in the above case) is only chosen.

I am using the Sound To Global Controller to do these tests.

I thank you for helping me and I wish you a nice day

rastko

asked Mar 14, 2019 in Capytalk & Smalltalk by rastko-lazic (Practitioner) (410 points)

1 Answer

0 votes
Thanks for pointing this out! This has been fixed and you can get the update right now by choosing Check for Software Updates from the Help menu in Kyma.
answered Mar 17, 2019 by ssc (Savant) (126,300 points)
...