attr | value

attr | value

trying to understand the following

var val = $(this).attr('colspan') | x) 

if there is no col span and x is 5 then val will be 5? 

if there is a colspan of say 2 and x is 5 then val will be 7?

Is there a way to say val = colspan if colspan exists else val = x? not add them together if both exist?