search a number of on array
Posted: Fri May 27, 2022 8:13 pm
I have an array created with
AaDd(aFrequeMax[nRuota],{massimo, &num})
then I have a number for a sample 42 and the nWheel 1
I must found the number 42 on aFrequeMax [nWheel] and return me the second element of this array
How I must make it ?
I tried with
AEval( aData, { |a| If( (a[1] = numero ), nFrequenza:=a[2] , nil ) } )
AaDd(aFrequeMax[nRuota],{massimo, &num})
then I have a number for a sample 42 and the nWheel 1
I must found the number 42 on aFrequeMax [nWheel] and return me the second element of this array
How I must make it ?
I tried with
AEval( aData, { |a| If( (a[1] = numero ), nFrequenza:=a[2] , nil ) } )