Using a condition in repeat_count column

1. What is the problem? Be very detailed.
Hi everyone

I would like to repeat a number of questions based on the following conditions:

if ${syst_culture}=1 then repeat the set of questions only once;
if ${syst_culture}=2 then repeat the set of questions at least twice.
syst_culture variable has two options : 1 or 2

I tried this formula in the repeat_count column but it didn't work.

if (${syst_culture}=1, .=1, .>=2).

I will appreciate any help to solve this problem.

Thanks
2. What app or server are you using and on what device and operating system? Include version numbers.
Android 10 and ODK V1.30.1 and Kobotoolbox server

3. What you have you tried to fix the problem?

I browse into the forum without success.

4. What steps can we take to reproduce the problem?

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.

Hi @i_ousmane
unfortunately, it's not possible to set the number of repeats like that using >=, <= operators. It has to be a number.
To solve your problem I would add an additional question after the group that would check if the number of repeats is correct:
constraintNumberOfRepeats.xlsx (8.3 KB)

Hi @Grzesiek2010

Ok. I will try it.

Thank you very much and have a good day.