Product Documentation
Virtuoso ADE Verifier SKILL Reference
Product Version IC23.1, November 2023

verifDocumentExists

verifDocumentExists(
g_sessionId 
t_fileName
)
=> t / nil

Description

Checks if the given file exists in the documents directory of the Verifier cellview.

Arguments

g_sessionId

Integer, string number, or window specifying the Verifier session ID. For example, 0, "0", or window(2).

t_fileName

The name of the file.

Value Returned

t

The file exists in the documents directory of the Verifier cellview

nil

The file does not exist.

Examples

Opens a Verifier cellview and checks if a specified document file exists in the current session.

uid = verifOpenCellView("test" "sample" "verifier")
=> 0

Adds file.txt from the current directory to the session.

verifAddDocument(sess "file.txt") 
=> "documents/file.txt"

Finds the file successfully.

verifDocumentExists(sess "file.txt")
=> t

Returns nil if the file is not found.

verifDocumentExists(sess "another_file.txt") 
=> nil

Related Topics

verifAddDocument

verifAddImage

verifGetDocuments

verifGetImages

verifImageExists

verifRemoveDocument

verifRemoveImage


Return to top
 ⠀
X