# Script Editing - The basics

### Master Script Links

How to link a Master Script to another Master Script.

{% embed url="<https://youtu.be/VR06Axtjq-g>" %}

### System Script Link

How to link a Master script to a Custom System Script.

{% embed url="<https://youtu.be/PX4r79jic4k>" %}

### Drag & Drop

Any of the different Item types can be added to the Script by using drag and drop.&#x20;

Select an item (Question, Message, Task or any other item) from the list of items shown in the Navigation Pane.&#x20;

<figure><img src="https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2FM4rAa42YPe9BeDtEAQzk%2FItem%20Type%20Menu%204.4.7.png?alt=media&#x26;token=fa4d0760-89ba-4be5-a7f0-cd78ca4420a6" alt=""><figcaption><p>Item Type Menu</p></figcaption></figure>

Left-click on the item with the mouse, hold the left mouse button down and move the cursor to the required position and release.

Initially the cursor will change to ![](https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2F9AZ7x2OXXYyWTBPQSQE1%2F2023-04-24_11h46_43.png?alt=media\&token=5b9e65af-1b32-4394-a403-6b36db7bf367)indicating that the question cannot be moved, but as you move the mouse into the Editing Pane a symbol ![](https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2FQgSBpaE8KOJKiz6Oe1r1%2FBelow.png?alt=media\&token=6547b890-ddc0-4fb8-8efe-2dfea6feee17) will appear to the left of the Script Step column.&#x20;

The cursor will also change to ![](https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2F8MD7ufcOAfDRb05nAxKe%2F2023-04-24_11h47_49.png?alt=media\&token=1cfac00a-f733-448e-9467-e7233d9d7245) as it moves over an area where the item can be placed.

Releasing the left mouse button will place the item into a position ***below*** the step where the cursor is located; this makes it the next step in the sequence. To place the item ***above*** an existing step, hold down the **Shift** key before dropping and the icon by the Script Step will change to ![](https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2FA2n8smJet8CcQT6myPoA%2FAbove.png?alt=media\&token=d3fe5b70-63ea-4e2e-92b9-b7f353f667eb).

### Deleting an item

To delete any item, select it with the mouse and click the **Delete** button.&#x20;

<figure><img src="https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2F1DcPfCy9NQ1Ool4ACN9u%2FMenu%20Bar%20Delete%204.4.7.png?alt=media&#x26;token=09c18ac4-16f1-4e88-b176-5189537de7e5" alt=""><figcaption><p>Menu bar delete button</p></figcaption></figure>

Script steps are displayed in a hierarchical tree structure. The tree can be expanded and closed by clicking on the **plus** and **minus** buttons.

<figure><img src="https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2FuOtmhWDl9M4dS1gdoI0L%2FScript%20Grid%20Close%20Expand.png?alt=media&#x26;token=63719fae-6e95-4320-ba8f-e33bef5eca8f" alt=""><figcaption><p>Script Step tree structure</p></figcaption></figure>

### Sections

At key steps in a Script, you may want major branches in the Script logic as well as Script elements that apply to more than one branch. To develop this logic, you can create **Sections** within a Script.\
When in Script Edit mode click the **Add** button and a new section will be added to the end of the Grid.

Sections are automatically named **Section1**, **Section2**, etc as they are added. These can be edited to create more meaningful headings as required.

The example below shows two Sections have been created and linked to from the Next Step column.

<figure><img src="https://2882349412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MARm6St_qFGM52R3pBa%2Fuploads%2FarluX9wHd8c3Z2CtsNsb%2FSections.png?alt=media&#x26;token=66a190ba-b3ec-499a-bfeb-5fc7330dd3e9" alt=""><figcaption><p>Example of Sections being used within a Master Script</p></figcaption></figure>
