How do I format an integer text object using just logic bricks In the BGE is there a way, using just logic bricks and not Python, to format an integer text object so that it stays right justified within a field.

Let's make this a simple two digit number between 0 and 99.  When the number changes from 9 to 10, I want the 1 to shift one digit to the left and the 0 to remain in the units position.  There are two ways I found to do this, neither very elegant.  

One way is to use ( with a single ALWAYS SENSOR ) a two frame animation defining the two positions ( a tens position and a units position ) with two EXPRESSION CONTROLLERS, one for the integer less than 10 and the other for the integer ten or greater.  Each controller is attached to an ACTION ACTUATOR that selects the appropriate position frame.  The other way I found was to use constraints in a logic brick setup similar to the position animation just described.  

Is there a more elegant way or some feature I'm missing in the logic bricks?
Not really elegant:


I guess this is pretty similar to your solution.