Boolean isRedemptionValid = row.Field<Boolean>("IsRedemptionValid"), isDateValid = row.Field<Boolean>("IsDateValid"), isTimeValid = row.Field<Boolean>("IsTimeValid"), isDowValid = row.Field<Boolean>("IsDowValid"); if (isRedemptionValid && isDateValid && isTimeValid && isDowValid) { availability = "Available for Redemption"; } else if (!isRedemptionValid) { availability = "Not enough number of uses"; } else if (!isDateValid) { availability = "Not available in the date range"; } else if (!isTimeValid) { availability = "Not available in the time range"; } else { availability = "Not available on that day of the week"; }