Ruby get element of an array


#1

Hello,

I want to get the element of an array called 'Choix menu SVI' at the position "i" and check if it is equal to '9'. I tried this bit it does not work. How can I do that ?

if(event.get('Choix menu SVI'[i]))=='9'
event.set('Motif','Joindre';
end


(Paris Mermigkas) #2

Try this one

if event.get('Choix menu SVI')[i] == '9'
  event.set('Motif','Joindre')
end

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.