The following example sets wrap on and then prints in the three different alignments: left, center, and right:

savewrap=_wrap // save last wrap setting
_wrap=true // must be true for alignment
savealign=_alignment // save last alignment setting
_alignment="left"
? "Hello left"
_alignment="right"
? "Hello right"
_alignment="center"
? "Hello center"
_alignment=savealign // reset
_wrap=savewrap // reset