compare.md

Compare

The Compare building block compares two values A and B, using a comparison method such as "equals" or "less than or equal to". See the Use Numbers and Variables lesson for an example of how to use the Compare block.

Fully expanded, the Compare block shows the following properties:

Note: The screenshot on this page uses the Elegance Design , introduced in 2025.3. If you are using an earlier version, your layout may look different.

Quick-start

  1. Drag Compare onto the canvas.
  2. Connect the block in the flow and specify Value A , Value B , and Comparison method . Optionally select Comparison type when you need to control how values are interpreted.
  3. Run the flow when it's ready.

Building block parameters

Parameters

Resources

Topic Description
Flows FAQ Common questions about creating, running, and managing flows in Leapwork.
Flows Troubleshooting Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork.