While 관련 조건을 사용하여 반복되는 태스크의 흐름을 제어합니다. 이러한 조건은 루프가 계속 실행되어야 하는지 아니면 중지되어야 하는지를 결정합니다. 또한 그룹 추가 옵션을 사용하면 관련 조건을 그룹화하여 복잡한 워크플로를 보다 쉽게 관리할 수도 있습니다.

예를 들어, 데이터 집합의 특정 값을 확인하는 조건이나 프로세스 상태를 확인하는 조건을 그룹화할 수 있습니다. 이는 구조적이고 효율적인 자동화 스크립트를 유지하는 데 도움이 되며, 루프의 다음 반복으로 진행하기 전에 모든 관련 조건이 함께 평가됩니다.

Loop package는 자동화 태스크의 실행 흐름을 제어하기 위해 여러 가지 While 관련 조건을 제공합니다.
표 1. While 조건
While 설명
Application Use the Application is running or Application is not running condition to run actions based on whether an application is running or not running.

Enter the application path or specify the path using a variable along with the amount of time to wait (in seconds) for the condition to be true.

주: The Application is running and Application is not running conditions are not applicable for Internet Explorer bots because its corresponding process iexplore.exe runs in the background when Microsoft Edge is launched in IE mode.
Boolean Boolean 변수 값을 기반으로 actions을 실행하려면 이 조건을 이용합니다. 이 조건을 이용하여 두 부울 변수의 값을 비교하거나, 한 부울 변수의 값을 선택한 다른 부울 값과 비교합니다.
Data table Use the Data table is empty condition to execute actions based on whether the specified table contains values.

Use the Number of rows and Number of columns conditions to execute actions based on whether the number of columns or rows is Equal to, Greater than, or Less than the specified value.

Datetime Use the Datetime variable condition to execute actions based on whether the value of the source datetime variable is Equal to or Not Equal to, is Greater than or Equal to, or is Lesser than or Equal to the value of the target datetime variable.
Dictionary 이 조건을 이용하면 선택한 사전 변수에 지정 키가 포함되어 있는지 여부에 따라 일련의 actions을 반복할 수 있습니다.
주: 키 비교는 대소문자를 구분합니다.
File Use the following conditions to execute the action:
  • File date

    Use this condition to verify the date and time when a file was created or modified. Specify a date or date range using the On a date, Is within last, Is between, or Is before options. For the On a date option, specify a date to verify whether the file was created or modified on that date. For the Is within last option, specify the number of days or time (in hours, minutes, and seconds). Enter the amount of time (in seconds) to wait for this condition to be true.

  • File exists and File does not exist

    Use these conditions to execute an action based on whether a file exists. For example, if a data file exists, format the file and upload it to a database.

  • File extension
    Use this condition to check the file extension of a selected file and then execute actions based on the results.
    1. Use the File path field to select a file.
    2. From the Operator field, select one of the following options to evaluate conditions based on file extensions:
      • In Set: This operator is used to verify whether the file extension of a chosen file is included in a predefined set of extensions. If the file's extension corresponds to any extension within this set, the condition is deemed true. This functionality is useful when you want to execute actions on files that are part of a particular group of extensions.
      • Not In Set: This operator acts as the opposite of In Set by determining whether the file extension of a selected file is excluded from a specified set of extensions. If the file's extension does not match any in the set, the condition is considered true. This functionality is useful for excluding certain file types from an action.
  • File size

    This condition verifies if the specified file is larger, smaller, not the same, or the same as the size you specify.

    Enter the amount of time (in seconds) to wait for this condition to be true.

Folder가 존재하거나 존재하지 않음 이러한 조건을 이용하면 폴더 존재 여부에 따라 일련의 actions 작업을 반복합니다.
Image Recognition Use these conditions to verify whether:
  • Image file is found in the Image file or not.
  • Image file is found in the Window or not.
  • Window is found in the Image file or not.
  • Window is found in the Window or not.
For the Window conditions, you can use the Resize window option to specify the window dimensions. This option delivers a more reliable bot. It resizes the window to the dimensions at which the task was recorded, which enhances the bot's ability to identify the target object.
주: This option is only available for windows that can be resized. It is not available for Desktop or Taskbar options.

For the Window conditions, you can use the Preview option to select a specific captured occurrence and position your click location relative to the image.

JavaScript Use the Script is successful or Script is unsuccessful condition to execute actions based the status of the specified JavaScript. Select the file that contains the script and optionally specify the parameters by selecting a list variable.
Legacy automation The Legacy automation conditions are only used in migrated bots to ensure that they run seamlessly in Automation 360. We do not recommend using these conditions for new bot development. The following conditions to verify the following:
  • Whether Web control exists or not.
  • Whether Window control exists or not.
  • Whether Window control is active or not.
  • Whether Script is successful or not.
  • Whether Child window exists or not.

For the Window control conditions, you can use the Resize window option to specify the window dimensions. This option delivers a more reliable bot. It resizes the window to the dimensions at which the task was recorded, which enhances the bot's ability to identify the target object.

List Use the List variable condition to execute actions based on whether the specified list variable contains a particular value. The value can be of Number, String, or Boolean data type.
Number Use the Number variable condition to execute actions based on whether the specified number variable is Equal to or Not Equal to, or is Greater than or Equal to, or is Lesser than or Equal to a particular value.
Ping Use the Ping is successful or Ping is unsuccessful condition to verify if a machine or server is running, and execute actions based on the result. Enter the amount of time (in seconds) to wait for the condition to be true.
Recorder
  • Use the Object exists condition to detect an object in a window. Select a window or variable to capture the object.
  • Use the Object does not exist condition to verify whether a specific object exists in a window, and then based on the result, execute actions. For example, you can use the Object does not exist condition inside the Loop > While condition to make sure that the bot does not execute the next action until the object on the business application is loaded.
  • From the Set system time out field, select either Basic or Advanced.
    • Basic: In the Wait for system response (in seconds) field, specify the number of seconds the bot must wait for object control to appear on the application window. This wait time includes the wait time for both page load and object search.

      We recommend setting a delay time when using the Set text action to enter keystrokes into a text field.

      주: The timeout specified for the bot to wait for the control to appear on the application window applies only if the window in which the control is present exists. The Recorder first looks for the application window and only then searches for the object inside that window. The default time to search for the window is 30 seconds. Hence, even if you specify the wait time as 5 seconds, it still waits for 30 seconds by default if the window does not exist.

      We recommend that you first use the If > Window exists condition, specify a wait time of zero second and ensure that the application window exists. If the window exists then use the Recorder, specify a wait time of 5 seconds, and run the bot to detect the object.

    • Advanced: Use this option to automate websites that are constantly loading and updating with latest data such as a stocks website. These websites are never technically fully loaded on screen. In such cases, the bot does not need to wait for the web page to load completely and can directly proceed with automating the web page after a certain time.

      In the Wait for browser response (in seconds) field, specify the number of seconds the bot must wait for the browser to load. Select one of the below options:

      • Stop the bot and display an error message: If the web page has not loaded completely within the specified time out, select this option to stop the bot and display an error message.
      • Skip and proceed to the object: Select this option to proceed to the object directly and capture it even if the web page has not loaded completely.

      In the Wait for object response (in seconds) field, specify the number of seconds the bot must wait for object control to appear on the application window.

주: The Object exists and Object does not exist Recorder conditions support Chromium-based Microsoft Edge with Internet Explorer mode.
Service Use the Service is running or Service is not running condition to execute actions based on whether a service is running or not. Select Service list to choose a service from the list of available services.
String Use the String variable condition to execute actions based on whether the specified source string value is Equal to or Not equal to, or Includes or Does not include the target value.

You can select the Match case option to only execute actions if the two strings have matching uppercase and lowercase letters.

When you extract text from a Microsoft application, the extracted text contains the /r/n special characters which indicate a new line. Select the Ignore Carriage return option if you want to ignore the /r special character when you compare the text.

To create a condition based on whether a string is empty or not empty, compare the source value to an empty target field using the Equal to operator.

See 조건문 사용 예.

Task Bot Use the Task successful or Task unsuccessful condition to execute actions based on the status of the specified Task Bot. You can also use the Error handler with the Task unsuccessful condition to check if the task has failed. This can be done as long as the On error, continue with next action option in the Error handler > Catch action is not enabled.
VBScript Use the Script is successful or Script is unsuccessful condition to execute actions based on the status of the specified Visual Basic script. Select the file that contains the script and optionally specify the parameters by selecting a variable.
Window Use the Window exists or Window does not exist condition to verify if a specific application window is open by entering the Window title or using a variable. Enter the amount of time (in seconds) to wait for the condition to be true. These conditions are used when the window title remains constant and to verify if the specific window is open and execute further actions based on the output.

The Window exists condition uses the same window variable to search the specific window from cache. For example, when you open a Yahoo India web page and perform a Click action on the News option on the web page, the action navigates you to another page which changes the title of the window. In this case, when you use the Window exists condition to verify if the window exists, the bot still fetches the Yahoo India web page from the cache and performs action on it because the window is still the same but only the title has changed. For more information on how window variables work, see 변수(사용자 정의)

Use the Window with same title does not exist or Window with same title exist condition to verify whether a window with the same title exists or whether the window title has changed. Enter the amount of time (in seconds) to keep verifying if the condition is true. These conditions are used for window titles that are dynamic. For example, when you open a Google account webpage, enter your username and password to log into your account, the window title changes. If you want to compose a new email as a next action, you can use these conditions before you execute the next action to verify if the window with the same title exists or if the title has changed.

그룹 조건

그룹 추가 옵션을 사용하여 여러 부울 조건을 추가하거나 그룹 내에서 AndOr 옵션을 사용하여 둘 이상의 조건을 결합하고 일련의 actions을 실행하기 전에 bot이 한 번에 여러 조건을 확인하도록 합니다.

그룹 내에 그룹을 추가할 수도 있습니다.