Regarding a byte condition
<p>I am stuck in an issue.  I have the following method:</p>

<pre><code>public byte determineCardType(final IInput inputData) {
    byte cardType = UNKNOWN_CARD;
    try {
      if (isWagRewardsLoyaltyCard(inputData))
        cardType = WAG_LOYALTY_CARD_TYPE;
      else if (isDRCard(inputData))   //checking that card scanned and swiped is a DR Card
        cardType = DR_CARD_TYPE;      
           else if (isWagRewardsPartnerCard(inputData))
        cardType = AARP_CARD_TYPE;
      return cardType;
    } catch (Exception e) {
      return UNKNOWN_CARD;
    }
  }
}
</code></pre>

<p>Then, I have another piece of code in which I am checking the card type that is returned from the above method.</p>

<pre><code>if((aarpCardSupport.isAARPCard(input))||(determineCardType(input)==DR_CARD_TYPE))  
        {
        return true;
        }else if((isDRCard(input))&amp;&amp;(isDRLoayltyEnabled())) //would return 1 for DR card only when isDRLoayltyEnabled returns true 
        {
          return true;
        }       
        return false ;  
}
</code></pre>

<p>But in the above code as shown determinecardtype is showing an error since it's return type is byte and I cannot compare using </p>

<pre><code>if((aarpCardSupport.isAARPCard(input))||(determineCardType(input)==DR_CARD_TYPE))  , 
</code></pre>

<p>Please advise.</p>
