Component Comparison

Table of Contents

Description

Compares the values of two arguments. The component performs branching within the script. If the selected logical operation and the values of the arguments match, the transition is carried out on the "True" branch, otherwise - on the "False" branch»

Table 1. System Characteristics

Index

104

Short title

compare

Types of scenarios

All of them

Starter module

r_script_component_compare

Mode

Synchronous

Icon

104

Branching pattern

Branching, interrupting

Properties

Table 2. Properties
Specification Description

Title: Argument 1
Code: arg1
Visibility: no
Default: — 

Operand 1

Title: Argument 2
Code: arg2
Visibility: no
Default: — 

Operand 2

Title: Comparison Type
Code: compareType
Visibility: no
Default: ==

Logical operation between Operands.
Possible values:

  • < (0) – Strictly less.

  • =< (1) – Less than or equal to.

  • == (2) – Exactly equal.

  • >= (3) – Greater than or equal to.

  • > (4) – Strictly more.

  • =/= (5) – It’s not equal.

When comparing values of different types, they are pre-transformed to the same type.

Title: Transition, Truth
Code: transferTrue
Visibility: no
Default: — 

The component to which control is passed if the operation is true.

Title: `Transition, Lies
Code: transferFalse
Visibility: no
Default: — 

Component to which control is passed if the operation is false.

See also