Object rotates using either control A or B

Hello fellow tech artist,

So I am trying to get an attribute on one object to rotate using either control A or B but with nodes. no constraints or expressions.
ObjA.rotateY and ObjB.rotateY = ObjC.rotateY;

Is there a node that I can use to have work with both?

Hi,

This idea may work.

supposed wanted either 1 or 5.

suppose wanted 1.

(1)*1 + (0)*5 = 1

suppose wanted 5, just switch around the multiplying factor

(0)*1 + (1)*5 = 5

Here are the nodes used:
1 reverse and binary picker attribute for multiplying factor
2 multiply divide nodes (multiplication) for each side
1 plus minus node for the addition.

picture http://flic.kr/p/cPHH9f

Hope this is helpful,

Cheers
Nate