Multiple OR conditions

Multiple OR conditions

Hi Guys,
I am really new to jquery, can someone please answer this basic question for me

how do I do an or condition in Jquery, I want to check if one of these two divs have these classes

This is what I have tried


if ($('Find-Block').hasClass('find-block-on') || $('Add-Block').hasClass('add-block-on')) {

Any help will be very much appreciated


Thanks in advanced