Can i use
case
when 'A'
...........
when 'B'
when C
if var1 = var2
Case var1
when 'AA'
............
when 'BB'
.............
Endcase.
endif.
endcase