%%[
/* Fictional portfolio rebuild. Review and validate in SFMC before reuse.
Sample attributes: first_name, vehicle_model, location_name,
service_recommendations (pipe-delimited text). No client identifiers. */
VAR @firstName, @greeting, @vehicle, @location, @services
VAR @rows, @rowCount, @i, @service, @printed
SET @firstName = Trim(AttributeValue("first_name"))
SET @vehicle = Trim(AttributeValue("vehicle_model"))
SET @location = Trim(AttributeValue("location_name"))
SET @services = Trim(AttributeValue("service_recommendations"))
IF Empty(@firstName) THEN
SET @greeting = "Hello,"
ELSE
SET @firstName = ProperCase(@firstName)
SET @firstName = Replace(@firstName, "&", "&")
SET @firstName = Replace(@firstName, "<", "<")
SET @firstName = Replace(@firstName, ">", ">")
SET @greeting = Concat("Hi ", @firstName, ",")
ENDIF
IF Empty(@vehicle) THEN SET @vehicle = "vehicle" ENDIF
IF Empty(@location) THEN SET @location = "your local Northline center" ENDIF
SET @vehicle = Replace(@vehicle, "&", "&")
SET @vehicle = Replace(@vehicle, "<", "<")
SET @vehicle = Replace(@vehicle, ">", ">")
SET @location = Replace(@location, "&", "&")
SET @location = Replace(@location, "<", "<")
SET @location = Replace(@location, ">", ">")
SET @printed = 0
]%%
Northline · Your vehicle’s next good mile
A service checklist tailored to your vehicle, with useful fallbacks when details are missing.
| northline. | THE MEMBER CLUB PORTFOLIO CONCEPT |
|
A LITTLE CARE GOES A LONG WAY More good miles start right here. |
 |
%%=v(@greeting)=%% Let’s keep your %%=v(@vehicle)=%% ready for whatever’s next. Here are the services currently recommended for your vehicle. |
YOUR SERVICE CHECKLIST%%[ IF NOT Empty(@services) THEN
SET @rows = BuildRowsetFromString(@services, "|")
SET @rowCount = RowCount(@rows)
FOR @i = 1 TO @rowCount DO
SET @service = Trim(Field(Row(@rows, @i), 1))
IF NOT Empty(@service) THEN
SET @service = Replace(@service, "&", "&")
SET @service = Replace(@service, "<", "<")
SET @service = Replace(@service, ">", ">")
SET @printed = Add(@printed, 1)
]%%
- %%=v(@service)=%%
%%[ ENDIF NEXT @i ENDIF
IF @printed == 0 THEN ]%%
- No recommended services on file. We’re here when you need us.
%%[ ENDIF ]%% |
|
Your service center %%=v(@location)=%% |
|