So I\'m using a shorthand javascript if/else statement (I read somewhere they\'re called Ternary statements?)
if
else
this.dragHandle.hasClas
you can use && operator
&&
direction == "right" && slideOffset += $(".range-slide").width()