Sweldista Payscript follows the regular scoping rules commonly used by programming languages except that a variable has 2 scopes: