complex not(!) conditions
Hey guys ,
can you checkout the below if conditions , they make extendsive use of the not operator and i am a little confused as to what really are they checking for :
Example One :
- if ((!target.length || index < 0) && o.loop == f) {
- // do somethng
- }
i really don't understand this not operator , under what circumstance would the below condition :
- !target.length
return true or false ??
- if (!ul.queue('fx').length) {
- // do something
- }
under what circumstance would the above condition return true or false ?? (i understand the queue function .. but once again i don't understand under what circumstance would the condition return true or false) .
for example if the condition was something like the below :
- if(!ul.queue('fx').length == 0){
- // do something
- }
i would totally get it , but somehow i don't understand those examples i have given , can somebody explain ?
Thanks .