--- title: "Form Engine Variables" slug: "form-engine-variables-10" description: "A reference for Form Engine variables." updated: 2026-10-05T16:33:38Z published: 2026-10-05T16:33:38Z canonical: "kb.lasernetgroup.com/form-engine-variables-10" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt > Use this file to discover all available pages before exploring further. # Form Engine Variables **Applies to:** Lasernet Core 10 ## Form Engine Variables | Variable Name | Description | | --- | --- | | CurrentRearrange | The CurrentRearrange variable is generally available in all scripts called from named rearranges. It contains a reference to the rearrange from which the script is being called. It is of the type InputRearrange. | | Line | The Line variable is generally available in all scripts called from named rearranges. It contains the line number on which the CurrentRearrange is placed, for the pattern on which the rearrange is placed. It is used to refer to other named rearranges on the same pattern. The **Line** variable starts with line number set to **0 (zero)** function CalcPrice() : Number { return Price[Line].number * Quantity[Line].number; } | | GlobalLine | The GlobalLine variable is generally available in all scripts called from named rearranges. It contains the global line number on which the CurrentRearrange is placed. This line number includes all patterns. The **GlobalLine** variable starts with line number set to **1 (one)** | | masterJob | Available from scripts run on Sheet Modifiers and rearranges. *masterJob* is of type *Job*. It is from this that the *job* is copied when each sheet starts processing. This means that you can use *masterJob* to copy data to the next sheet. masterJob.setJobInfo("JobInfoName", "Value"); | | CurrentPage | The CurrentPage variable is available in scripts called from named rearranges and from Sheet Modifiers. It contains the number of the output page that is being processed. | | PreviousPage | The PreviousPage variable is available in scripts called from named rearranges and from Sheet Modifiers. It contains the number of the page before the current page (CurrentPage minus 1). | | FirstPage | The FirstPage variable is available in scripts called from named rearranges and from Sheet Modifiers. It contains the number of the first output page, which is always 1. | | LastPage | The LastPage variable is available in scripts called from named rearranges and from Sheet Modifiers. It contains the number of the last output page, which is the total number of output pages. | | CurrentText | The CurrentText variable is available in scripts called from named rearranges. It contains the original text of the rearrange from which the script is called. For more information, see [Use Scripting to Expand Lasernet Core Functionality](/v1/docs/use-scripting-to-expand-lasernet-core-functionality-10). |