PDef Function

Returns the definition status of a specified point.

Syntax
PDef (point)

Parameters

point
Specify an integer value or Pnumber or P(expr) or point label. Cautions for compatibility: No variables can be specified for point parameter To use variables, write PDef(P(varName)).

Return Values
True if the point is defined, otherwise False.

See Also
Here Statement, Pdel

PDef Function Example

If Not PDef(1) Then
    Here P1
EndIf
Integer i
For i = 0 to 10
    If PDef (P(i)) Then
        Print "P(";i;") is defined"
    EndIf
Next