.. _Show Constraints:

Show Constraints
================


To see where a variable is constrained, **right click on it's name > Show > Constraints**.

.. figure:: ../../images/common/sv_show_constraints_trigger_editor.png



The results are presented in the **Search View**.

.. figure:: ../../images/common/sv_show_constraints_results.png



The results include:

.. list-table::

  * - .. figure:: ../../images/common/constraint_obj.png
    - Constraint blocks involving the variable
  * - .. figure:: ../../images/common/randomize_with.png
    - In-line constraints of the variable inside randomize() with { ... }
  * - .. figure:: ../../images/common/task_obj.png
    - Calls to rand_mode() and constraint_mode() which affect the variable randomization



.. tip:: 

  For **rand** or **randc** class variables you can also hold down the :kbd:`Ctrl` key while **hovering** the name of the variable with the mouse cursor, and pick **Show Constraints** from the pop-up list.

.. figure:: ../../images/common/sv_show_constraints_trigger_hyperlink.png



.. tip:: 

  You can also trigger this functionality from a view's **context menu**, for example from the **Types View** or **Type Hierarchy View**.

.. figure:: ../../images/common/sv_show_constraints_trigger_view.png



.. tip:: 

  You can choose to hide **constraint_mode()** and **rand_mode()** calls using the toolbar **Filters...** button: 

.. figure:: ../../images/common/sv_show_constraints_filter.png




