I am working on a scenario - let's say
var clicked=false;
var operate=false;
I want something like:
if((myButon is clicked) || (operate == true))
{
//escalate operation
}
I could use $('myButton').click(function(){ }); to get the click operation but how can I combine this with the OR condition as expressed above?