This script [FM Weetbicks] Best of 2021 #5 - Idle Record Release - #3 by xochi got me interested in the behavior of repeating fields or variables in FileMaker.

Here's a test script - before looking at the results shown below, can you predict what the answer will be?

```
Let(
[
$blank = "";
$x[-2] = "negative 2";
$x[-1] = "negative 1";
$x[0] = "zero";
$x[$blank] = "blank";
$x[1] = "one";
$x[1.2] = "onePointTwo";
$x[100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000] = "alpha";
$x[100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001] = "beta"
];
"$x[-2] = " & $x[-2] & ¶ &
"$x[-1] = " & $x[-1] & ¶ &
"$x[0] = " & $x[0] & ¶ &
"$x[$blank] = " & $x[""] & ¶ &
"$x[1.2] = " & $x[1.2] & ¶ &
"$x[1] = " & $x[1] & ¶ &
"$x[100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000] = " & $x[100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000] & ¶ &
"$x[100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001] = " & $x[100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001]
)
```

Questions I had:

- can the repetition number be zero or negative or a decimal?
- can the repetition number be a string?
- is there a limit to the # of digits?

Here's what I found:

```
$x[-2] = negative 2
$x[-1] = negative 1
$x[0] = zero
$x[$blank] = onePointTwo
$x[1.2] = onePointTwo
$x[1] = onePointTwo
$x[100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000] = alpha
$x[100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001] = beta
```

The answers appear to be:

- repetitions can be zero or negative
- decimal repetations are rounded to the nearest integer
- a non-numeric value (such as "") is interpreted as one, e.g. $variable[1]
- the repetition number can be more than 50 digits long. If there is a limit, I didn't hit it.