Skip to main content

Condition Editor

The Condition Editor is a visual editor for defining conditional expressions as Condition Blocks that branch the processing flow based on input devices and the solution state. Condition Blocks you create can be reused as branching conditions in the Action Chain Editor, and by assigning them to the Condition property of behaviors and Fusion, the same conditional logic can be shared and reused in multiple places across the solution.

Tool UI overview

Panel layout

Double-click any Condition Block in Solution Explorer to open the Condition Editor panel. On this panel, you build a logical expression by placing and connecting Check / AND / OR / NOT nodes. Condition Blocks you create here can be referenced from the Action Chain Editor.

By default, the Condition Editor panel is hidden. To display it, choose View > View Editor > Condition Editor from the menu bar.

drawing-4-1764895088.png

On the Condition diagram, you can place and connect the following nodes via the context menu. The ConditionBlock node is inserted automatically when you create a Condition Block and cannot be deleted. The properties of any node placed on the diagram can be edited in the Properties panel.

The ConditionBlock node represents the overall boolean result of the Condition Block. This value is used as the evaluation result when the block is referenced from the Action Chain Editor or from the Condition property of behaviors and Fusion.

Node type Description Add Check

Select a Check node that serves as the entry point for configuring the condition expression. Use this menu to specify the Condition behavior to use as the starting point. You can also create it by dragging a Condition behavior from the toolbox onto the diagram.

Add AND / OR / NOT These are logical operator nodes that combine multiple Check nodes and sub-conditions. Use AND / OR / NOT to express composite conditions. Copy / Cut / Delete / Paste This menu becomes available when a node on the diagram is selected. It lets you copy, cut, delete, and paste the selected node.

Basic operations

Create a new Condition Block

Follow these steps to create a new Condition Block:

    In Solution Explorer, open the context menu at the desired location.

    Choose Add > New Item.

      The Add New Item dialog opens.

      In the dialog’s left pane, select Condition Block, then click OK.

        The value you enter in Name becomes the new Condition Block’s name.

        A new Condition Block is created in Solution Explorer.

          At the same time, the Condition Block you created is added to Behaviors in the toolbox.

          Double-click the newly created Condition Block to launch the Condition Editor.

            On the Condition Editor panel’s diagram, you will see a Condition node whose name matches the Condition Block name you set in step 3.

            For the Condition Block you created, you can use the standard operations in Solution Explorer to copy, duplicate, delete, and rename it.

             

            Condition Block category settings

            A newly created Condition Block is automatically registered in the Behaviors section of the toolbox. To assign it to a category in the Behaviors section, follow these steps:

              In Solution Explorer, select the Condition Block you want to configure.

                Its properties appear in the Properties panel.

                In the Properties panel, under General > Category, enter a category name.

                After entering the category name, press the Enter key. A new behavior group with that name is created in the toolbox’s Behaviors section.

                  The selected Condition Block is moved into that behavior group.

                  Creating a Condition diagram

                    In Solution Explorer, double-click any Condition Block.

                      The Condition Editor panel opens.

                      A Condition node whose name matches the Condition Block is present on the panel.

                      On the right pane, open the context menu, choose Add Check, and select the Condition behavior to use.

                        It is placed on the diagram as a Check node.

                        Place AND / OR / NOT nodes as needed and build the logical expression.

                        As needed, add AND / OR / NOT nodes and connect the Check nodes to construct the expression.

                        Connect the Condition Block node at the end of the diagram.

                          The completed Condition diagram can be reused from the Action Chain Editor.

                          It can also be used as the Condition in behaviors and in Fusion.