Script Mode

Welcome to the world of PenScript

PenScript is the powerful logic layer behind Penbox, allowing you to create dynamic behaviors, perform calculations, and manipulate data within your forms and workflows. With PenScript, you can unlock the full potential of Penbox by customizing and automating your workflows.

In this section, we’ll walk you through the key functions of PenScript, categorized into operators, logic, lists and loops, and object manipulation. Each function is designed to handle specific tasks, from performing calculations to evaluating conditions or creating dynamic lists.


Why Use PenScript?

  • Automation: Perform calculations, automate decisions, and reduce manual intervention.
  • Flexibility: Create dynamic, condition-based workflows and forms tailored to your needs.
  • Efficiency: Simplify complex operations with easy-to-use functions.

Whether you're a developer, a technical admin, or just someone looking to make your forms smarter, PenScript gives you the tools you need to enhance your workflows.


How to Use This Section

This guide is divided into several categories of functions:

  1. Operators: Perform calculations like sums, products, and comparisons.
  2. Logic: Evaluate conditions and control the flow of your processes (e.g., :if, :then, :else).
  3. Lists & Loops: Create, manipulate, and iterate over arrays and lists.
  4. Objects: Transform and assign object data for advanced use cases.

Each function is explained with its purpose, an example, and any additional tips to help you understand how to use it effectively.


Key Benefits of PenScript Functions

  • Dynamic Forms: Add intelligent features to your forms, like pre-filling data, conditional visibility, and more.
  • Powerful Data Handling: Process and manipulate data directly within Penbox without needing external tools.
  • Custom Workflows: Tailor Penbox to your unique business needs by implementing logic that matches your processes.

Now that you know what PenScript is and why it's valuable, let’s dive into the functions themselves. You’ll find examples and explanations for each function, helping you master the art of dynamic workflows with PenScript!