We'll take a step-by-step look at how to create and make use of a library in Scriptcase.

**1.** To create an library go to: **Tools > Internal Libraries**

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=l9nfod7501c2d20a14c648acfc9916031400f)

**2.** In this first window you should select what level you want to create/upload your library.

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=l9nfod1ef2d105e07479b8ab527eca4961706)

**3.** You can upload a file with your script or create a new one.

Click in New.

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=l9nfoe70ac48fded24d7f9ae2a0032eb6ed1c)

**4.** Type the name for the new library, an description and put your code.

In this example we will check if some field is empty.

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=l9nfo1a9a8f4cbdee4d9fa517cc3382b84a3e)

**5.** Now you have to enable the library to be used in your app.

Do it in: FORM-->PROGRAMMING-->LIBRARIES

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=l9nfo4a9fbf9c546943c0a1d223d0529e7f37)

  

**6.** In the event ONVALIDATE of the form we will call the function create in our library.

**7.** Run the application and see the output of the function.