**I want to display all the Car Model names which are there in 2nd DE.
car 1 DE : Name ,Email and CarBrand
Car 2 DE: Type,Model
The Carbrand from DE1 and Type from DE2 have same values
Code:
%%[
Var @fname,@cartype,@models,@ModelName
set @fname = "FirstName"
Set @cartype = "CarBrand"
Set @email = "Email"
Set @Models = LookupRows('Car2','Type',@cartype)
Set @Modelsrowcount = Rowcount(@Models)
If @Modelsrowcount > 0 Then
For @i = 1 to @Modelsrowcount do
Set @row = row(@Models,@i)
Set @ModelName = Field(@row,'Model')
next @i
ENDIF
] %%
Hello %%=v(@fname),
For your Choice of CarBrand : %%=v(@cartype) we have different Models available for you : %%=v(@ModelName)=%%
Error: A FOR statement is not closed with the required NEXT statement. ClientID: 100014646 JobID: 0 EmailID: 0 Index: 713 Statement: For your Choice of CarBrand : %%=v(@cartype) we have different Models available for you : %%=v(@ModelName)=%%{{/block}}
please help!!