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

symstrp

symstrp( 
g_value 
) 
=> t / nil

Description

Checks if an object is either a symbol or a string.

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 either a symbol or a string.

nil

If g_value is neither a symbol nor a string.

Examples

symstrp( "foo" )    
=> t
symstrp( 'foo )     
=> t
symstrp( 3 )        
=> nil

Related Topics

stringp

symbolp


Return to top
 ⠀
X