Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

using the count feature

Avatar

Former Community Member
I have a form that collects the age of the people. All fields (6 of them) are named as "Age". If the "Age" is greater than or equal to 3 I need the count of them in another field. I tried this but was uncessfull. Any help is appreciated



If (Age[*] >= 3) then

RAA = Count[*]

endif
1 Reply

Avatar

Former Community Member
I think that you will have to test each field individually and if the age is > 3 then increment the other field. I do not think you will be able to do it by using a single expression like you are trying.