age Range in Mendix

Hi How can i do an age range structure 'for example need the age to be in this format 0 - 15' and later in my application will use it 'when a user enters an age the application will throw a message that is appropriate for the age group' example 0-15 'Kid' 16 - 19 'Teenager' . . .
1 answers

Create an enumeration with suitable entries: Kid, Teenager, Adult...

Add an attribute to your user object set to this attribute. Add a Before Commit microflow to your User object to set this attribute from your Age field.

Add the same attribute to the objects (like films?) that you wish to restrict.

Use Custom microflows to open/display your (film?) objects to check the attribute value for the currentUser vs. the object being opened, and either display a message or open the object as appropriate.