Hints to read zscript
When beginner first meet
zscript, he usually get confused with "where is the declaration of such variable?". ZK use Beanshell as java interpreter. As Beanshell's manual says: Beanshell supports "loose" or dynamically typed variable. That is, you can refer to variables without declaring them first and without specifying any type. Also,
zscript can access component's field and implicit object, they may look like strange undeclared variables to java programmer.
Some packages are imported implicitly by Beanshell, but some package have to be imported by developer.
Typical usage of
zscript includes initialization and declaring global variables and methods.