Created
March 28, 2017 07:08
-
-
Save katydorjee/aa98e4741fff5e7e5a6e908e9d286988 to your computer and use it in GitHub Desktop.
For loop in Ampscript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%[ | |
SET @pl = "a|b|c|d|e" | |
SET @prefArray = BuildRowSetFromString(@pl,"|") | |
SET @rCount = RowCount(@prefArray) | |
FOR @i = 1 TO @rCount DO | |
SET @ddd = Field(Row(@prefArray, @i),1) | |
]%% | |
%%=V(@ddd)=%% <br> | |
%%[ | |
NEXT @i | |
]%% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment