So I have case statements grouped together here, but I have a few case statements that need extra decision based on a second variable after the original case is confirmed.
This is what I have now:
Case "PRIVATE_PARTY"
If Condition = KBB_CONDITION_EXCELLENT Then
Vehicle.MarketValue = Response.PrivatePartyExcellent
ElseIf Condition = KBB_CONDITION_GOOD Then
Vehicle.MarketValue = Response.PrivatePartyGood
Else
Vehicle.MarketValue = Response.PrivatePartyFair
End If
Is it possible to add an "and" statement to some of the cases like this and have the code work in the same fashion?
Case "TRADE_IN" And Condition = KBB_CONDITION_EXCELLENT
Vehicle.MarketValue = Response.TradeInExcellent
And then just have 3 case statements instead of one but the code wouldn't look ugly. By the way Condition is declared instead the same select.
- Would this work?
- Is there any reason why I shouldn't use this if it does work?