# \[ODK Community\] Loop index or position

**URL:** <https://forum.getodk.org/t/odk-community-loop-index-or-position/4652>\
**Category:** Support\
**Created:** [August 19, 2015, 3:26pm UTC](https://forum.getodk.org/t/odk-community-loop-index-or-position/4652 "2015-08-19T15:26:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 19, 2015, 3:26pm UTC](https://forum.getodk.org/t/odk-community-loop-index-or-position/4652/1 "2015-08-19T15:26:58Z")

</div>

Hanan,

I haven't looked at your form, but in general, if something is not  
working, you should try outputting to a debug variable to make sure  
variables are what you think they are. In this case, you might want  
position(..) not position().

Yaw

> **···**
>
> -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.
> 
> On Wed, Aug 19, 2015 at 5:30 AM, Hanan Aqilan [hjameelq@gmail.com](mailto:hjameelq@gmail.com) wrote:
> 
> > Hi All,
> > 
> > I have a condition inside my repeat as follows: if it is the first loop,  
> > then do this, not do something else. I tried to use position but it didn't  
> > work for me, I did it as shown in the image attached.
> > 
> > Thanks, -Hanan
> > 
> > ## --
> > 
> > Post: [opendatakit@googlegroups.com](mailto:opendatakit@googlegroups.com)  
> > Unsubscribe: [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com)  
> > Options: [http://groups.google.com/group/opendatakit?hl=en](http://groups.google.com/group/opendatakit?hl=en)
> > 
> > * * *
> > 
> > You received this message because you are subscribed to the Google Groups  
> > "ODK Community" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [opendatakit+unsubscribe@googlegroups.com](mailto:opendatakit+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
