Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

portp

portp( 
g_value 
) 
=> t / nil

Description

Checks if an object is an input or output port.

The suffix p is usually added to the name of a function to indicate that it is a predicate function.

Arguments

g_value

A data object.

Value Returned

t

If g_value is an input or output port, whose type name is port.

nil

If g_value is not an input or output port.

Examples

portp( piport )    
=> t
portp( 3.0 )
=> nil

Related Topics

infile

outfile


Return to top
 ⠀
X