script logic example