Skip to main content
source formatting
Source Link
Adam Spriggs
  • 31.1k
  • 6
  • 44
  • 88
%%[
var @lname, @fname
set @fname = uppercase(AttributeValue("Firstname"))
set @lname = uppercase(AttributeValue("Surname"))

set @fname = uppercase("G")
set @lname = uppercase("Minshall")

outputline(concat("input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

outputline(concat("<br>output:",@fname," ",@lname))

set @fname = uppercase("Graeme")
set @lname = uppercase("M")

outputline(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

outputline(concat("<br>output:",@fname," ",@lname))


set @fname = uppercase("Adam")
set @lname = uppercase("Spriggs")

outputline(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

outputline(concat("<br>output:",@fname," ",@lname))

]%%
%%[

set @fname = uppercase(AttributeValue("Firstname"))
set @lname = uppercase(AttributeValue("Surname"))

set @fname = uppercase("G")
set @lname = uppercase("Minshall")

output(concat("input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

output(concat("<br>output: ",@fname," ",@lname))

set @fname = uppercase("Graeme")
set @lname = uppercase("M")

output(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

output(concat("<br>output: ",@fname," ",@lname))

set @fname = uppercase("Adam")
set @lname = uppercase("Spriggs")

output(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

output(concat("<br>output: ",@fname," ",@lname))

]%%
input: G MINSHALL 
output: VIP MEMBER 

input: GRAEME M 
output: VIP MEMBER 

input: ADAM SPRIGGS 
output: ADAM SPRIGGS 
%%[
var @lname, @fname
set @fname = uppercase(AttributeValue("Firstname"))
set @lname = uppercase(AttributeValue("Surname"))

set @fname = uppercase("G")
set @lname = uppercase("Minshall")

outputline(concat("input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

outputline(concat("<br>output:",@fname," ",@lname))

set @fname = uppercase("Graeme")
set @lname = uppercase("M")

outputline(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

outputline(concat("<br>output:",@fname," ",@lname))


set @fname = uppercase("Adam")
set @lname = uppercase("Spriggs")

outputline(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

outputline(concat("<br>output:",@fname," ",@lname))

]%%
input: G MINSHALL 
output:VIP MEMBER 

input: GRAEME M 
output:VIP MEMBER 

input: ADAM SPRIGGS 
output:ADAM SPRIGGS 
%%[

set @fname = uppercase(AttributeValue("Firstname"))
set @lname = uppercase(AttributeValue("Surname"))

set @fname = uppercase("G")
set @lname = uppercase("Minshall")

output(concat("input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

output(concat("<br>output: ",@fname," ",@lname))

set @fname = uppercase("Graeme")
set @lname = uppercase("M")

output(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

output(concat("<br>output: ",@fname," ",@lname))

set @fname = uppercase("Adam")
set @lname = uppercase("Spriggs")

output(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

output(concat("<br>output: ",@fname," ",@lname))

]%%
input: G MINSHALL 
output: VIP MEMBER 

input: GRAEME M 
output: VIP MEMBER 

input: ADAM SPRIGGS 
output: ADAM SPRIGGS 
Source Link
Adam Spriggs
  • 31.1k
  • 6
  • 44
  • 88

Something like this maybe?

%%[
var @lname, @fname
set @fname = uppercase(AttributeValue("Firstname"))
set @lname = uppercase(AttributeValue("Surname"))

set @fname = uppercase("G")
set @lname = uppercase("Minshall")

outputline(concat("input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

outputline(concat("<br>output:",@fname," ",@lname))

set @fname = uppercase("Graeme")
set @lname = uppercase("M")

outputline(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

outputline(concat("<br>output:",@fname," ",@lname))


set @fname = uppercase("Adam")
set @lname = uppercase("Spriggs")

outputline(concat("<br><br>input: ",@fname," ",@lname))

IF length(@lname) > 13 or length(@lname) < 2 or length(@fname) > 13 or length(@fname) < 2 then
  set @fname = "VIP"
  set @lname = "MEMBER"
ENDIF

outputline(concat("<br>output:",@fname," ",@lname))

]%%

Output

input: G MINSHALL 
output:VIP MEMBER 

input: GRAEME M 
output:VIP MEMBER 

input: ADAM SPRIGGS 
output:ADAM SPRIGGS