It's very similar to what I posted earlier. Essentially it's:
If Text = 0 then
Self.SetTabAlign(0, 0)
Else If Text = 1 then
Self.SetTabAlign(0, 2)
End if
SetTabAlign is a method for the TextObject. The first value is the tab that you're referencing. Remember, you can have multiple tabs in a text box. Also remember that the first item in a list is generally indexed at 0, rather than 1. So the first tab is 0. The second value is the alignment. 0 = left, 1 = right, and 2 = center. So by putting 0 and 0 in the parenthesis, you're saying the first tab should be left. 0 and 2 is first tab center.
Hope that helps,
Chris
#XPression