Compare Attribute with Value 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

Value

YEL

Comparison Type

Alphanumeric

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

  2. Since the head location of region SRC1 is YEL and the comparison value 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 Value.