The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
document.write("Accepted");
} else if (usercode == "36271268510401" && passcode == "36865149995521") {
document.write("Accepted");
} else {
document.write("No access.");
}
Something like that?
It doesn't use the 'or' statement in that though, as using the 'or' would be to long winded.
i have a site that has a login system. the login uses a code thing, so if the user name is alexj17 it would 4850372394585 something like that.
the script is :
if(usercode==36271268510400&&passcode==36865149995520)
i want it so i can have another user that can log as well, thats why i asked if there was and and or. you told me it but it didnt work:
any other suggestion , now i have told you a bit more?
eg:
if (thevalue == "3" || thevalue == "5")
{
rararar
}
if (value1 == "xyz" || value2 == "xyz")
||
as in:
if (value1 || value2 == "xyz")
... or maybe ...
if (value1 == "xyz" || value2 == "xyz")
.. or maybe ...
if ((value1 == "xyz") || (value2 == "xyz"))
... try those, and see.