Hi everyone!
We use profile caps to limit how many profiles will pass through the journey, but I want to know if there's a way to set this profile limit using functions on the data source condition in advanced mode.

For example, I want to get all the users whose "Color" field is "GREEN" - #{ExperiencePlatform.CarAttributes.Color} == "GREEN" - and limit it to 10 profiles. All coded in advanced mode.
Is it possible?
PS: The data example is fictional.