What is the simplest way to determine if an element in an array contains a particular value?
I have tried the following without success (Always returns "No!"):
[tt]
split("SMTP,smtp,X400,x400,X500,x500,MS,ms,RFAX,rfax,CCMAIL,ccmail",ValidTypes)
variable = "X400"
if (variable in ValidTypes) { print "Yes" } else { print "No!" } # << This does not work:
[/tt]
Regards,
Shaun
I have tried the following without success (Always returns "No!"):
[tt]
split("SMTP,smtp,X400,x400,X500,x500,MS,ms,RFAX,rfax,CCMAIL,ccmail",ValidTypes)
variable = "X400"
if (variable in ValidTypes) { print "Yes" } else { print "No!" } # << This does not work:
[/tt]
Regards,
Shaun