Monday, May 20, 2024
108
rated 0 times [  109] [ 1]  / answers: 1 / hits: 200139  / 15 Years ago, wed, may 20, 2009, 12:00:00

What is a simple jQuery statement that states an operation proceeds only if A and B are true? If A isn't true, stop. If A and B are true, then continue.
`


More From » if-statement

 Answers
5

jQuery is just a library which enhances the capabilities of the DOM within a web browser; the underlying language is JavaScript, which has, as you might hope to expect from a programming language, the ability to perform conditional logic, i.e.



if( condition ) {
// do something
}


Testing two conditions is straightforward, too:



if( A && B ) {
// do something
}


Dear God, I hope this isn't a troll...


[#99499] Friday, May 15, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
malkajillc

Total Points: 652
Total Questions: 107
Total Answers: 98

Location: Finland
Member since Sat, Nov 6, 2021
3 Years ago
malkajillc questions
;