Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 9/26/2022
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.31. project_exists (::quartus::project_ui)

The following table displays information for the project_exists Tcl command:

Tcl Package and Version

Belongs to ::quartus::project_ui

Syntax project_exists [-h | -help] [-long_help] <project_name>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
<project_name> Project name
Description
Checks whether a project exists. Returns 1, if a project exists; 
returns 0, otherwise.
Example Usage
## Create project if one does not exist.
## Open existing project otherwise.
if [project_exists chiptrip] {
	project_open chiptrip
} else {
	project_new chiptrip
}
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful