[MUSIC] Hello and welcome to this demonstration on using a break activity in studio. [MUSIC] In this video, you will learn to create a workflow that will stop the iteration at a chosen point, using the brake activity. [MUSIC] For demonstration purposes, we will use, for each activity to append text to each item in an array of integers, and display the results in the output panel. [MUSIC] So let's begin. [MUSIC] Search for an assigned activity in the activities panel, and drag and drop it in the designer panel. [MUSIC] Let's rename the sequence activity as, break, and add an annotation to it. [MUSIC] Renamed the assigned activity also. In the two text box, press control plus K to create a new variable, and name it as new array. [MUSIC] In the adjacent box, enter four integers, 45, 56, 67, 78, in curly brackets. [MUSIC] From the variables panel, change the variable type of new array to array of integers. [MUSIC] Search for, are for each activity in the activities panel, and drag and drop it below the assigned activity, and rename it. [MUSIC] Type item in the first text box of the for each activity, and in second text box type the variable, new array. [MUSIC] Search for a message box activity in the activities panel, and drag and drop it in the body section of the for each activity, and rename it. [MUSIC] Enter text item.ToString+, is a number in double quotes. [MUSIC] Search for a right line activity in the activities panel, and drag and drop it below the message box activity, and rename it. [MUSIC] Enter text, item.ToString+, in its text box. [MUSIC] Search for an input dialog activity in the activities panel, and drag and drop it below the right line activity, and rename it. [MUSIC] In double quotes, enter the title text, question, in the dialog title, and label text, one iteration is done, do you want to stop, in the input label box. [MUSIC] Now from the variables panel, create a variable, user reply, with variable type as string, and scope as body. [MUSIC] Navigate to the properties panel of the input dialog activity, and enter the variable, userReply, in the result property. [MUSIC] Search for an effectivity in the activities panel, and drag and drop it below the input dialog activity, and rename it. [MUSIC] In the condition text box of this effectivity, enter condition, userReply= "Yes". [MUSIC] Search for a break activity in the activities panel, and drag and drop it into then section of the effectivity. [MUSIC] Click save to save the project and run it. [MUSIC] You can see that the first number is displayed, click OK. [MUSIC] It asks if you want to stop, enter No, and click OK. [MUSIC] It displays another number, click Ok. [MUSIC] It again asks if you want to stop, enter Yes this time, and click OK. [MUSIC] Now, navigate to the output panel. [MUSIC] You can see that out of four integers in the initial array, only two numbers are displayed in the output panel, and the workflow stopped. This is how a break activity can be used. It is encouraged to create the workflow as demonstrated, and familiarize yourself with the usage of break activity in studio. [MUSIC] Thank you for watching. [MUSIC]