Dynamic coding with multiple values
What is the proper way to handle dynamic coding with multiple values?
Should we add an IN statement to syntax?
( targetData.ita_contact_hist_enrich.xcoh_state_enrich IN ("CT", "VA","MN", "PA","OH") )
OR WOULD IT BE:
<%
if ( targetData.ita_contact_hist_enrich.xcoh_state_enrich == "CT" )
{
%>Pre-Qualified<%
}
if ( targetData.ita_contact_hist_enrich.xcoh_state_enrich == "VA" )
{
%>Pre-Qualified<%
}
if ( targetData.ita_contact_hist_enrich.xcoh_state_enrich == "MN" )
{
%>Pre-Qualified<%
}
if ( targetData.ita_contact_hist_enrich.xcoh_state_enrich == "PA" )
{
%>Pre-Qualified<%
}
if ( targetData.ita_contact_hist_enrich.xcoh_state_enrich == "OH" )
{
%>Pre-Qualified<%
}
else {
%>Pre-Approved<%
}
%>
Thank you.