You either need to write out all of the ORs or use in array
// if w/ ||s
if ($statusofsale_value == 'available' || $statusofsale_value == 'underoffer' || $statusofsale_value == 'reserved') {
OR
/ if w/in_array();
if (in_array($statusofsale_value , array('available', 'underoffer', 'reserved'))) {