Hi,
I'm checking fields prior to processing and I've got it working fine, but I wonder if there's a better (more efficient) way to do it? I'll probably be adding 3-5 more values/fields also.
if ((($form{'field'} eq "Value1") or ($form{'field'} eq "Value2") or ($form{'field'} eq "Value3")))) {
$spread = "file.html";
}
else {
$spread = "file2.html";
}
You think this will work ok with about 5-9 values? Any comments or suggestions would be great! Thank you.
I'm checking fields prior to processing and I've got it working fine, but I wonder if there's a better (more efficient) way to do it? I'll probably be adding 3-5 more values/fields also.
if ((($form{'field'} eq "Value1") or ($form{'field'} eq "Value2") or ($form{'field'} eq "Value3")))) {
$spread = "file.html";
}
else {
$spread = "file2.html";
}
You think this will work ok with about 5-9 values? Any comments or suggestions would be great! Thank you.