google app script for loop code example Example: google script for loop for(var i = 0; i < 5; i++) { num = num * i+1; }