Sonali Deo

How to access values from Array

Discussion created by Sonali Deo on Nov 26, 2012
Latest reply on Dec 3, 2012 by teena mathew

Hi,

In other programming language we can loop through array and get values at an index. Is there any way we can achieve this in blaze. 

In one of the rule I would like it to iterate through array of some type and check if a particular value is present and then again in second rule check for other value.

Exa: I have one array of Person's names. I would like to check for one first name and one last name. It might not be of a same person. May be one person's first name is Jim and another person's last name is Thomas. And these two are in array of objects of type person.

Can anyone help me in this.

Thanks in advance.

 

Sonali

Outcomes