myPin = PORTB.1
Read the state of the pin and stores the value to myPin.

HIGH myPin
Is for making a pin HIGH.

So the way you want to do it will not work.

The only way I see to do what you want is to use an IF/THEN/ELSE block with three condiitons or CASE SELECT with three conditions.