For a <= constraint "cons" AMPL moves all terms involving variables to the left, and all constant terms to the right. The value of the resulting left side is cons.body, and the value of the right side is cons.ub (and the right minus the left gives cons.slack).
For a >= constraint AMPL moves the terms in the same way. The value of the resulting left side is cons.body, and the value of the right side is
cons.lb (and the left minus the right gives cons.slack).
Thus in particular the right-hand side is cons.ub or
cons.lb, depending on how you write the constraint.