Compare component

:icons:font :hardbreaks: :imagesdir: ../../../assets/images :toc-title: Contents :toc:

Description

Compares the values of two arguments. The component branches inside the script. If the selected logical operation and argument values match, the transition goes along the "True" branch, otherwise along the "False" branch. The component branches inside the script. If the selected logical operation and argument values match, the transition goes along the "True" branch, otherwise along the "False" branch.

Table 1. System characteristics

Index

104

Short name

compare

Script types

All

Start module

r_script_component_compare

Mode

Synchronous

Icon

104

Branching type

Branching, interrupting

Properties

Table 2. Properties
Specification Description

Name: Argument 1 Code: arg1 Visibility condition: no Default: — 

Operand 1

Name: Argument 2 Code: arg2 Visibility condition: no Default: — 

Operand 2

Name: Comparison type Code: compareType Visibility condition: no Default: ==

Logical operation between operands. Possible values:

  • < (0) — Strictly less.

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

  • == (2) — Exactly equal.

  • >= (3) — Greater than or equal.

  • > (4) — Strictly greater.

  • =/= (5) — Not equal.

When comparing values of different types, they are first converted to one type.

Name: Transition, true Code: transferTrue Visibility condition: no Default: — 

Component to which control is transferred when the operation is true.

Name: Transition, false Code: transferFalse Visibility condition: no Default: — 

Component to which control is transferred when the operation is false.

See also