Flow Commands
From UBot Studio
The Flow Commands allow you to control the way commands flow within your script.
List of Flow Commands
- Pause Script: Pauses the script. This is generally used for debugging purposes
- Stop Script: Stops the script. This is generally used for debugging purposes
- Wait: waits for a specified number of seconds
- Wait For Element: Waits for a specified element to appear or disappear from a page
- Wait For Browser Event: Waits for a browser event to happen, such as a page being loaded
- Return: Exits the current command or function and allows custom functions to return a value
- Loop: Runs the contained commands a specified amount of times
- Loop While: Runs the contains commands while a specified condition is true.
- Thread: Runs the contained commands in a separate thread from the main script allowing multiple commands to run at the same time. (Professional and Developer Editions Only)
- If: Runs the contained commands if the condition is true
- Then: Use this inside of an if command to specify which command should run if the condition is true
- Else If: Use this inside of an if command to specify another condition to check if the last condition was not true
- Else: Use this inside of an if command to specify which command should run if the condition is not true
- On Load: Commands inside of this command will run when the bot is loaded or the tab is loaded.(Developer Editions Only)
- Include: Allows the running of defines from an outside .ubot file.
- Define: Defines a custom command or function that can be used in the correct bot.
- Alert: Displays an alert box to display a message to the end user
- In New Browser: Runs all commands inside a separate web browser in separate windows
- In Shared Browser: Runs all contained commands inside a new browser that shares cookies with the current browser
- In Popup: Runs all contained commands inside a previously opened popup from a webpage
- Divider: Visually divides up pieces of code to help the visual aesthetics of the scripting window
- Comment: Allows you to write comments within your code.