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

verifImageExists

verifImageExists(
g_sessionId 
t_fileName
)
=> t / nil

Description

Checks if the given file exists in the images 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 images directory of the Verifier cellview.

nil

The file does not exist or the operation is unsuccessful.

Examples

Opens a Verifier cellview and adds an image file from the current directory to the session.

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

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

verifAddDocument(sess "file.png") 
=> "images/file.png"

Checks if the file has been added.

verifImageExists(sess "file.png") 
=> t

Returns nil if the check is performed for a file that was not added.

verifImageExists(sess "another_file.png") 
=> nil

Related Topics

verifAddDocument

verifAddImage

verifDocumentExists

verifGetDocuments

verifGetImages

verifRemoveDocument

verifRemoveImage


Return to top
 ⠀
X