Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 90000

For loop not running?

$
0
0

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


Viewing all articles
Browse latest Browse all 90000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>