Reputation: 891
This means "if exist"
if($.cookie("movies_list")) {
// do something
}
How to write "if not exist" without changing the structure?
Upvotes: 2
Views: 652
Reputation: 382881
Prepend the not operator !
if(! $.cookie("movies_list")) {
// do something
}
Upvotes: 10