Flow Commands

From UBot Playground
Jump to: navigation, search

The Flow Commands allow you to control the way commands flow within your script.


Newflows1.jpg


List of Flow Commands[edit]

  • 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
  • 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 inclusion of defines from an outside .ubot file into another .ubot script. (Developer Editions Only)
  • Define: Defines a custom command or function that can be used in the correct bot.
  • Return: Exits the current command or function and allows custom functions to return a value.
  • Alert: Displays an alert box to display a message to the end user
  • Thread Spawn: This command will spawn the specified number of threads, with the 'max concurrent' number of threads open at any given time.
  • 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.