Skip to content
RTILA Web Business Automation
  • Home
  • Features
  • Pricing
  • Marketplace
  • Docs
  • Support

Cart & Checkout Icon

RTILA Web Business Automation
  • Home
  • Features
  • Pricing
  • Marketplace
  • Docs
  • Support
Free Download
Free Download
Popular Search chatgptdownloadapivariablepro

Billing & Licensing

  • Change License’s registered email address
  • Upgrade a License
  • Manage License Activation Count
  • Reset RTILA Studio local database
  • Standalone Exe Antivirus False Positive Alert
  • Team Member Activation URL & License
  • AppSumo Codes Redemption
  • Download & Activate RTILA Studio
  • AppSumo Code Stacking & Upgrade
  • Mac OS Installation Warning

How-To & Tutorials

  • Public Templates
  • How to target a CSS element
  • Change default Browser
  • Export Results to a CSV file
  • Profile Session Feature
  • License Check for Standalone Executables
  • OCR Feature: read text from images
  • Auto Download Pinterest Images
  • Save current URL using JavaScript
  • Search & Filter Projects
  • Run Automations in Silent Mode (no browser opening)
  • Correcting & Completing Auto-Recorder Commands
  • RTILA WordPress Plugin installation & configuration
  • Using Developer Tools In RTILA Studio
  • Create A Project From Scratch
  • Bring back disappearing commands & properties
  • RTILA Cloud API documentation
  • Export & share an RTILA project file
  • Install Browser Extensions using Profile Session
  • How To Fill a Form Using Generic Form Filler Child-Project
  • Project Settings: Import URLs manual entry, From File, From Project, and Read XML Sitemap
  • Project Settings: Import URLs manual entry
  • Use Local Storage Variable to scrape Do-follow Links
  • Schedule Launch of Automations
  • Email Results File via Gmail
  • Read from Google Sheets & Post on WordPress
  • Website Load Testing Automation
  • Read data from a txt or csv file
  • Downloading files
  • Open in a New tab
  • Using filters to complete a URL
  • Choosing the right collection
  • Set a Counter with JavaScript
  • Setup re-Captcha Resolution
  • Woo Categories & ChatGPT API
  • Login to Google Account & share profile session
  • Google Search Baby Steps
  • Auto-Recorder as a 1st step
  • Standalone Executable Bots

Technical Documentation

  • Custom Commands
  • Integrations
  • RPA & Desktop OS Commands
  • Add And Configure Dataset Properties
  • Inspection Panel Interface & Elements
  • Config & binaries files for Standalone
  • Focus On Element Command
  • Go To Url Command
  • Scroll Element Command
  • Execute JavaScript Code command
  • Reload Page Command
  • Compare Variables Condition
  • Take Screenshot Command
  • Smart Variable (ChatGPT API)
  • Child Projects
  • Confirm (Dialog Box) Command
  • Populate Text Field Command
  • Hover Mouse On Element Command
  • Download Page Command
  • Stop Automation Command
  • Log Message Command
  • Input (prompt box) Variable
  • Extract Results Command
  • Wait for Element to Appear Command
  • Selector (DOM element)
  • Check Radio Input Command
  • Dynamic Variable (JavaScript Code)
  • Static Variables
  • Set Checkbox State Command
  • Set Dropdown Value Command
  • Press a Keyboard Key Command
  • Upload File Command
  • Double Click On An Element Event
  • Click On An Element Event
  • Switch Browser Identity Command
  • Slack Notification Command
  • Save as Pdf Command
  • Go Back To Previous Page Command
  • Go Forward To Next Page Command
  • Proxies Built-In Rotation
  • External Proxy Rotation API
  • Regular Expressions
  • Ejecute JavaScript (Global)
  • Mock Location Command
  • Close Page Command
  • Desktop Notification Command
  • Command Folder
  • Clear Cookie Command
  • Change Page Size Command
  • Break Loop Command
  • DataSet Types
  • Automation Commands Panel
  • Crawler Commands
  • Alert Message Command
  • Wait Commands
  • Home
  • Docs
  • Technical Documentation
  • Compare Variables Condition

Compare Variables Condition

Table of Contents
  • Use Case
  • How To Add & Configure The Compare Variables Condition
    • Add
    • Configure
    • Condition Types
  • Compare Variables Condition In Action
    • Two Variable Condition Case Example
    • One Variable Condition Case Example

Use Case #

The “Compare Variables” condition is a very powerful feature in RTILA , it lets you create a condition case with the RTILA variables , and preform many commands based on whether the conditions is met or not. With the use of this feature you can compare between two variables and check if the a value in variable_1 contains a value on variable_2 or even preform all kinds of possible comparison between variables . It is used to make decisions in the automation and to execute different parts of commands based on the result of the condition .

How To Add & Configure The Compare Variables Condition #

Add #

To use the “Compare Variables Condition” you can add the condition from the condition option of the new command interface . Once you add the condition you can choose what kind of comparison action you would like to preform between the variables

Configure #

  1. Edit the name of the compare variables condition referring to what variables is compared
  2. Select the first operand variable that would be compared with
  3. Choose the condition of the comparison > select on from the 14 possible conditions
  4. Select the second operand variable that would be compared with
  5. You can add the automation commands you want to preform in case the condition is met in here
  6. You can add the automation commands you would like preform in case the condition is NOT met

Condition Types #

  1. Exists : checks if the first variable exists , then execute commands
  2. Not Exists : executes commands if the variable doesn’t exist
  3. Equals (=) : if the first variable value equals the second variable value
  4. Not equals ( <> or != ) : if the first variable value is not equal to the second variable value
  5. Greater than ( > ) : if the first variable value is greater than the second variable value
  6. Greater or equal to ( ≥ ) : if the first variable value is greater than or equals the second variable value
  7. Smaller than ( < ) : if the first variable value is smaller than the second variable value
  8. Smaller than or equals( ≤ ) : if the first variable value is smaller than or equals the second variable value
  9. Contains : if the first variable value contains the second variable value
  10. Does not contain : if the first variable value doesn’t contain the second variable value
  11. Starts with : if the first variable value starts with the value of the second variable
  12. Doesn’t start with : if the first variable value doesn’t start with the value of the second variable
  13. Ends with : if the first variable value ends with the value of the second variable
  14. Doesn’t end with : if the first variable value doesn’t end with the value of the second variable

Note : When using the “Exist” and “Not Exist” condition type , you will only need one variable. This variable would be checked whether is exists or not , if it does , then the condition is met and the commands under the “IF CONDITION IS MET ” will run. If not , then you can also run the commands in the “IF CONDITION IS NOT MET ” section . This type works best with the selector variable DOM to check if certain elements exist on a page or not.

Compare Variables Condition In Action #

Two Variable Condition Case Example #

Here is an example of using the compare variables condition in an automation project that has a list variable with list of some of the “URLs in the RTILA website” named (RTILA_URLs_List) and a static variable that has the URL of the ” Docs section ” named (Docs_var) . In this example we used the compare variables condition to check whether the “RTILA_URLs_List” contains the ” Docs_var” .

If the condition is met then > show an alert message that says the condition is met > Go to the docs section using the “Docs var” variable > show another alert message informing that we are currently in the docs section .

If the condition is NOT met then > show an alert message that says the condition is Not met

One Variable Condition Case Example #

Here is another example that uses compare variable condition with the “Exist” condition that only takes one variable .

In this example we are using the “exist” condition to check if an ” H1″ element exist and show an alert message with the content of that H1 element .In case the condition isn’t met and the H1 doesn’t exist then it shows an alert message that says that the H1 is not found in the page.

What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on 23-Apr-23
Reload Page CommandTake Screenshot Command

Powered by BetterDocs

Leave a Reply Cancel reply

You must be logged in to post a comment.

Table of Contents
  • Use Case
  • How To Add & Configure The Compare Variables Condition
    • Add
    • Configure
    • Condition Types
  • Compare Variables Condition In Action
    • Two Variable Condition Case Example
    • One Variable Condition Case Example

RTILA CORPORATION

Suite 20C Trolley Square.
Wilmington, 19806 DE, USA.

Support

  • Documentation
  • Videos & Media
  • Support Tickets

Company

  • Cookie Policy
  • Privacy Policy
  • License Agreement
  • Payments & Refunds

Copyright © RTILA CORPORATION

Facebook GroupYouTube