How to show a field dependent on dropdown values?

I have a field_A and i want to show this when drop-down field_B value is 1 or 2
how i can achieve this via formula builder.
I know how to hide show field based on single value of dropdown (equal($field_B,"1")) but i am confused how to make it dependent for multiple values of drop-down.
i have aslo tried isInList() but i am not sure it can be achieved by isInList() or not.
Waiting for help