Forum Moderators: open
Example being:
function blah()
{
var something="thisisatopsecretmessage"
if (something==*secret*)
{
document.write("Found Secret")
}
else
{
document.write("No Secret Found")
}
}
I know this is no doubt very basic, but how would I go about changing the if so its basically 'If something has secret in it, do this, else, do that'.