jason_kelly
03-19-2012, 03:25 PM
Hello,
I need your help.
How could I write a functional if statement such that it would check against a series of various word strings seperated by commas ie.
function check(y) {
//y = "FOR INPUT"
var string_to_check = FOR INPUT, FOR ACTION, FOR APPROVAL
if (y isin string_to_check) { return 1 }
}
Thanks for everyones help.
J
I need your help.
How could I write a functional if statement such that it would check against a series of various word strings seperated by commas ie.
function check(y) {
//y = "FOR INPUT"
var string_to_check = FOR INPUT, FOR ACTION, FOR APPROVAL
if (y isin string_to_check) { return 1 }
}
Thanks for everyones help.
J