# Starting a model in analytics builder with a parent followed by nested child condition

**URL:** <https://community.cumulocity.com/t/starting-a-model-in-analytics-builder-with-a-parent-followed-by-nested-child-condition/2111>\
**Category:** Forum\
**Tags:** Streaming-Analytics-Apama, cumulocity\
**Created:** [March 13, 2024, 2:26pm UTC](https://community.cumulocity.com/t/starting-a-model-in-analytics-builder-with-a-parent-followed-by-nested-child-condition/2111 "2024-03-13T14:26:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdm](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/bdm/32/11919_2.png) [@bdm](https://community.cumulocity.com/u/bdm)\
**Post date:** [March 13, 2024, 2:26pm UTC](https://community.cumulocity.com/t/starting-a-model-in-analytics-builder-with-a-parent-followed-by-nested-child-condition/2111/1 "2024-03-13T14:26:29Z")

</div>

Hello,

I would like to start a model conditionally in a sort of multiple nested inputs (like like how we write a code with a parent if statement followed by a nested child if statement inside of it)

for example: what we consider the parent input if in case a worker is a particular geofence, if this parent condition is true, then based on events happening for users in this geofence we will wait for specific events in order to create a certain action

is this parent/child condition available somehow in analytics builder? because so far I can see that we can have one input (Alarm input, measurement input, event input etc…) but I am not finding how to test a child input into a parent input

thanks

---

<div class="post-metadata">

**Author:** ![shruti.dogra](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@shruti.dogra](https://community.cumulocity.com/u/shruti.dogra)\
**Post date:** [March 20, 2024, 10:15am UTC](https://community.cumulocity.com/t/starting-a-model-in-analytics-builder-with-a-parent-followed-by-nested-child-condition/2111/2 "2024-03-20T10:15:55Z")

</div>

This is a duplicate question and has already been answered here [Model using Analytics builder for a group - Forum - Cumulocity IoT - Software AG Tech Community & Forums](https://community.cumulocity.com/t/model-using-analytics-builder-for-a-group/7633/3), I believe?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [September 16, 2024, 10:16am UTC](https://community.cumulocity.com/t/starting-a-model-in-analytics-builder-with-a-parent-followed-by-nested-child-condition/2111/3 "2024-09-16T10:16:08Z")

</div>

Closed on September 16, 2024, 10:16am UTC

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