accessing a value inside a script (beginner question)