Comparison and logical operators

Tekla Structures
Modified: 11 Mar 2024
2025
Tekla Structures

Comparison and logical operators

Comparison and logical operators appear in conditional structure to evaluate operands and combine conditions. You can type them in after placing the cursor in the desired position in the Rule or Formula text field.

Operator

Description

Example

==

Both sides are equal

The following condition checks if the profile type is B.


!=

Sides are not equal

This rule checks if the assembly position is not equal to the next value of assembly position. If this is true, the row is output. If they are equal, the condition is false, and printing the row is skipped.


<

Left side is smaller

This rule finds all rows with the assembly position that is less than 10, anything equal to or greater than 10 is skipped.


<=

Left side is smaller or equal

This rule outputs values with a LENGTH less than or equal to 30. If those values are not found, they are skipped.


>

Right side is smaller

This rule outputs values with a LENGTH greater than 50, anything equal to or less than 50 is skipped.


>=

Right side is smaller or equal

This rule outputs values with a LENGTH equal to and greater than 30, anything less than 30 is skipped.


&&

Logical AND, both conditions must be true

If D1 is 200 and D2 smaller than 40, the row is output, otherwise it is skipped.


||

Logical OR, only one condition must be true

If D1 is 200 or D2 is smaller than 40, the row is output, otherwise it is skipped.


See also

Conditional structure for row rules and formulas in Template Editor

Value field functions in Template Editor

Control functions in Template Editor

Was this helpful?
Previous
Next