How do I conditionalize a message for people in different states?

Options

Here is the generic breakdown:

\\\\]

\\]x::You are from Massachuessetts!::\\]\\]

While sending email, \\\\] will be

translated into some two-letter state (or blank,

if there is no data). If it is MA, then you have

this:

\\\\]

...so xMAx is contained within xMAx, and the

conditional is TRUE, and we tell the email

recipient that they are from Massachuessetts. But

suppose they are from Colorado:

\\\\]

...xCOx and xMAx aren't anything alike, so the

conditional is FALSE. d happens to be empty, so

the server does nothing. Notice what happens if,

for some reason, you don't have a state for them:

\\\\]

...xMAx does not contain xx, and so the

conditional is FALSE. That is the purpose of the

xs in the a and b part. Remember, if b is blank,

the conditional; is always TRUE.

So for each state, you simply replace the a and c

parts with the state abbreviation for a, and the

message to the residents of that state with c.

Tagged:

Categories