hi, I'm trying to get a dynamic text box to stop going higher when it reaches a number defined by another dynamic text box, ex. text box 1 starts at Zero, and text box 2 starts at 25, whenever you click a button, text box 1 goes higher, but can't go higher than text box 2.

This is the code I have that doesn't seem to be working:

if(_root.A >= _root.B);{
_root.A == _root.B;
}


Thanks in advance