Polybench® Reference
Compares variables of other objects and changes its signal output to 0 (false) or 1 (true).

Variable Compare


Using the Variable Compare you can compare a variable in your application to a fixed value. The comparison is valid for numerical values as well as textual values.
If a textual value is compared, then the alphabetical order of the variable compared to the Compare Value is determined.

If a variable refers to multiple values, then the first value found is used. In that case, you cannot know exactly which value is used; therefore please take care that the variable you specify refers to a unique location.

Operator ports

Output K: Floating point values
This is a Constant output, which does not output a signal, but a single value. A constant output does not have a sample frequency and is therefore recognized by Polybench to be a constant. Many calculations can be performed on constants as well as signals (or a combination of both). If another operator performs a calculation on constants only, it becomes a constant operator itself.

Constants and any other data source are allowed to be mixed without synchronization (link).

In a schematic, connectors that are connected to constant outputs are always colored black, while connections from other data sources may be colored differently.


Find more information about changing properties here: link

type: Address, starts with '$' sign (see link)
Specify the address of a variable that should be compared to CompareValue

You may type or paste the address, or you may press the small button on the right to open the Address Searcher dialog (link)

type: See description
Define the value that the variable is compared against.

type: Select from the list
Select the comparison method.
Select one of those presets:
Put out True if S1 equals S2
Put out True if S1 is unequal to S2
Put out True if S1 greater than or equal to S2
Put out True if S1 less than or equal to S2
Put out True if S1 greater than S2
Put out True if S1 is less than S2

type: Word or phrase
The name of the object in the project. This name must not contain '.' or '$' characters.

Every object has the Caption property. This property is very important, because it is the name by which Polybench recognizes this object.
It is allowed to give multiple objects the same name, as long as the objects are of the same type. In that case, a reference to this caption includes all the objects with the same caption.
In Polybench, every object can be addressed by an Address specifier, which starts with the dollar sign, for example: $My Page.My Object. 'My Page' would be the Caption of a page, and 'My Object' the Caption of an object on that page.

type: See description
Optional documentation of this object.

It is good practice to write in short notes why you have used this object, and why its properties are set the way they are set. If this object is an operator, the Documentation text is displayed below the operator symbol.