Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to check more condition in javascript

Status
Not open for further replies.

markshen2004

Programmer
Jun 9, 2004
89
CA
if(a>b and c>d){
....
}

or

if(a>b || c>d){
....
}

Thanks
 

What is your actual question? What do you mean by "how to check more condition"?

You should use "&&" to test for "and", and "||" to test for "or".

You should use ">" to test for "greater than", and "<" to test for less than.

Hope this helps,
Dan
 
why would u want to do that???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top