Compare Attribute with Attribute Parameters Example

Parameters

This function block has the following parameters:

Parameter

Value

Combine with

 

Region ID

SRC1

Location

1

Item Class

VEHICLE

Attribute ID

COLOR

Start Character

0

Attribute Length

0

Comparison Operator

Equals

Region ID

DST1

Location

PRT_LAST

Item Class

VEHICLE

Attribute ID

COLOR

Start Character

0

Attribute Length

0

Comparison Type

Alphanumeric

The above function block uses Compare Attribute to Attribute, with the specified parameters.

Since the head location of region SRC1 is YEL and the tail location of DST1 is YEL and the configured comparison operator is Equals, the if statement will evaluate to true and decision SRC1_to_DST1 is selected.

More information

If (Expression).

Compare Attribute with Attribute Parameters.