Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 4/03/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.1.29.19. qed::has_property (::quartus::qed)

The following table displays information for the qed::has_property Tcl command:

Tcl Package and Version

Belongs to ::quartus::qed

Syntax qed::has_property [-h | -help] [-long_help] -property <property> [-is_set] <object>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-property <property> Name of the property to check
-is_set Flag indicating that this should only return true if the property is set to something (including a default value)
<object> Identifier associated with the object, must be unique
Description
Returns a boolean value indicating whether the given property exists
on the specified object.

A property can exist without being set. The "-is_set" option causes
the command to return true only when the given property exists and
is set to any value (including a default value).

You should check for the existence of an object's property before
attempting to modify it, because getting an object property that does
not exist returns a Tcl error.
Example Usage
    qed::create_object -type project project_A -comment {this is a comment!}

    # Returns: True
    qed::has_property project_A -property qpf_path

    # Returns: False
    qed::has_property project_A -property qpf_path -is_set

    # Returns: True
    qed::has_property project_A -property comment

    # Returns: True
    qed::has_property project_A -property comment -is_set
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful