in reply to how to get the local variable value outside the box
In addition to the link given by hippo, take a look at some of the Tutorials in our very own Variables and Scoping section.
Give a man a fish: <%-(-(-(-<