The Device Editor has the ability to create interactive symbols with conditional graphics – graphics that react to mouse clicks and pin states. This is most useful in digital simulations where some inputs such as buttons will change appearance with each click. For instance, if you edit the toggle switch's symbol (symbol name “toggle”), you will see that it is actually made of several conditional graphics. The changing part of the symbol indeed consists of three objects: an enclosing rectangle, a left-leaning polygon and a right-leaning polygon. The figure below shows the "Set Operation Dialog" and "set Conditional Properties Dialog". The "Related Pin Name" points to the pin whose condition is being tested to change the state of the graphics. In this case, if the pin “port” is high, the right-leaning switch is visible; otherwise, it is invisible. As for the left-leaning switch, the graphic is visible only if the pin state is low, and it is invisible otherwise. The large rectangle overlaying the two switch graphics is the area where a mouse click will be detected and affect the pin value.
The "Set Operation Dialog" for the toggle switch defines the type of operation. Every time a click is detected inside the active area, the pin “port” is toggled from high to low or vice versa. Therefore, in the drop-down list labeled "Operation to perform upon click", the "Toggle" option has been selected. Other options include Increment, Decrement, Set High, Set Low, Set Unknown, and Set Value To, with an edit box to enter the value. To make the rectangular active-click region an invisible graphic, go to the "Set Conditional Properties Dialog" of the rectangle object, where you will see both “Visible” checkboxes unchecked. The “Condition to evaluate upon click” should be set to some option other than “No Condition”. The "Set Operation Dialog" for the left-leaning and right-leaning polygons is similar to that of the active-area rectangle object. Both have the "Toggle" option selected for the operation to perform upon click. However, in the "Set Conditional Properties Dialog" of the left-leaning polygon, you see the "Is Low" option selected for the condition to evaluate upon click. Also, the checkbox labeled "Visible" in the "True State" section is checked. On the other hand, in the "Set Conditional Properties Dialog" of the right-leaning polygon, you see the "Is High" option selected for the condition to evaluate upon click. In this case, too, the checkbox labeled "Visible" in the "True State" section is checked. During a [[Digital Simulation|digital simulation]], the pin value is evaluated by the conditional properties discussed above, and the graphics changes accordingly.
<table>