Is an identifier defined in the script or not?

Is an identifier defined in the script or not? Identifiers can be th namesn if any global or local objects.

Name Type Default Description
Return int   Is the object declared at the point of execution of the call in the script or not? 1 : Yes, the object is declared. Declared does not mean that the object is also defined with a meaningful value!

0 : The object is unknown.
identifer char* oder String - Name of the function, variable or constant. Please note that you must specify the name of the object, not the object itself!

The first two questions are answered with 1. The third answer is 0:

int main ()
{
    char 	str [512];
wlog ("", "%s : %d\n", "frame::fit", declared ("frame::fit")); wlog ("", "%s : %d\n", "str", declared ("str")); wlog ("", "%s : %d\n", "abc", declared ("abc"));
return 0; }

Since
v4.1.8 R28400, 12. Apr 2021

Available
priint:comet InDesign® Plug-Ins, comet_pdf, Illustrator

Alphabetic index HTML hierarchy of classes or Java