ChatGPT answer is incorrect (JMP's indexing doesn't start from 0) and I would also write in different way in JMP anyway
If(Mod(Row() - 1, 4) == 0,
0
, Mod(Row() - 1, 4) == 1,
25
, Mod(Row() - 1, 4) == 2,
50
, Mod(Row() - 1, 4) == 3,
100
)
Using Match() is also most likely more clear in this case
Match(Mod(Row() - 1, 4), // JMP indexing starts from 1 instead of 0
0, 0,
1, 25,
2, 50,
3, 100,
.
)
You can add either of these as a formula in a formula column and then add as many rows as you need.
Scripting Index is very helpful if you need to know what the functions do, it does also provide examples you can run. It can be found from JMP's Help menu
Help button will open JMP Help page for that function Modulo(number, divisor)
-Jarmo