Tag Archives: loops

Create a JavaScript array and loop through it

Create a JavaScript array and loop through it: var theBeatles = [ “John Lennon”, “Paul McCartney”, “George Harrison”, “Ringo Starr” ]; for (i = 0; i < theBeatles.length; i++) { $(‘#myDiv’).append(theBeatles[i]+’ ‘); }

Posted in JavsScript, jQuery | Tagged , , , , | Comments Off on Create a JavaScript array and loop through it

AmpScript loops

Loops FOR loop %%[ FOR @i = 1 TO 9 DO ]%% Number: %%=v(@i)=%% %%[ NEXT @i ]%%

Posted in AmpScript, Email Dev, ExactTarget | Tagged , , | Leave a comment