Function: exist

Syntax

exist(<ident>)

Type

numeric

Returns

Whether an identifier exists: one if it does, zero if it doesn’t.

Parameters

Examples

The first case will give a return value of 1 because pi is a system numeric and always exists. The second case will return 1 if there is a local identifier also called pi.

numeric test = exist(pi) 
if (exist(~local.pi)) !Local pi exists