View Full Version : how do i 'if-not' a large ammount of strings/values?
04-11-2003, 07:09 PM
how do i say if-not for a alot of strings? can i put these strings in an array and if!=<arrayname>?
i need help, please help.
EDIT: I need to validate a string of text. It has to be one of the one(s) stated (they will be loads of these)
the else function is not any use since there is to many...
04-11-2003, 07:26 PM
Your question is pretty vague, but the logic goes like this:
if (this == that) // If they are equal
if (this != that) // If they are not equal
I hope this is what you're looking for.
04-11-2003, 07:43 PM
yes, but thats not what i need. thanks for trying.
i need somthing which
can 'right' ones be put into an array?
tosomthing= new array(10)
and if somthing is not equal to 'tosomthing itcalls the next thing up?
is this possible?
04-11-2003, 07:53 PM
Yes. Elaborate on the data you have, cuz all these 'somethings' are making me dizzy :(
04-11-2003, 08:00 PM
Perhaps the following sample page will show you how to do this easily:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
var tosomthing = new Array(10);
return (ar.join(' ').indexOf(it) < 0) ? false : true;
04-11-2003, 08:16 PM
If that's the case, some posts (http://www.codingforums.com/showthread.php?s=&threadid=18030) were just made about that (roughly)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.