GetDotted Domains

Viewing Thread:
"Quick question"

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.

Sun 16/02/03 at 19:09
Regular
Posts: 787
how do you say or in java script
Sun 16/02/03 at 21:24
Regular
"It goes so quickly"
Posts: 4,083
if (usercode == "36271268510400" && passcode == "36865149995520") {
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.
Sun 16/02/03 at 21:14
Regular
"^^^New Online Arcad"
Posts: 1,369
i cant get it to work. what the situation is:

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?
Sun 16/02/03 at 20:08
Regular
"You've upset me"
Posts: 21,152
It is indeed ||.

eg:

if (thevalue == "3" || thevalue == "5")
{
rararar
}
Sun 16/02/03 at 19:32
Regular
"It goes so quickly"
Posts: 4,083
Just looked in my book, its:

if (value1 == "xyz" || value2 == "xyz")
Sun 16/02/03 at 19:30
Regular
"It goes so quickly"
Posts: 4,083
I think it's:

||

as in:

if (value1 || value2 == "xyz")

... or maybe ...

if (value1 == "xyz" || value2 == "xyz")

.. or maybe ...

if ((value1 == "xyz") || (value2 == "xyz"))

... try those, and see.
Sun 16/02/03 at 19:28
Regular
"cachoo"
Posts: 7,037
Little confused about that question! :D
Sun 16/02/03 at 19:09
Regular
"^^^New Online Arcad"
Posts: 1,369
how do you say or in java script

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Thank you very much for your help!
Top service for free - excellent - thank you very much for your help.
Many thanks!
You were 100% right - great support!

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.