I was attempting a simple for loop in one of my custom calculations in a form and couldn't figure out why it wasn't working. So I tried to make the simplest of simple for loops and it just returns 1. Unless I'm wrong, wouldn't this be 10?
var n = 0
for ( i = 1; i <= 10; i++ ); {
var n = n + 1;
}
event.value = n