NP


number of points

NP
directory
format
message
object
system
var

NP

NP(L)

If L=(x1,y1,z1,...,xn,yn,zn) returns n.
If L="..." returns the number of words of L separated by spaces or ENTER (\n).
Examples:
NP[1,12]; returns 4.
NP("A BC\nD"); returns 3.
NP("AB",[1,12],"C"); returns 3.
Remarque: NP(NIL); returns 0.

NP directory

NP directory("dir")

Returne tne number of files of directory dir with options of read directory.

NP format

NP(L) format("c")

Returns the number of words of the string L separated by character c.
Example:
NP("A!BC!DEF")format("!"); returns 3.

NP message

NP message("env")

Returns the whole messages number.

NP message("env",n)

Returns the environment n messages number.
Example:
for(i=0,NP message("env",0)-1){message(0,i);NL;}
prints all messages of the interpreter.
for(i=0,NP message("env",1)-1){message(0,i);NL;}
prints all messages of anyflo.

NP object

Returns the number of objects.

NP system

Returns the number of objects in the stack.
edit system edits the stack content.

NP system("env")

Returns the whole commands number.

NP system("env",n)

Returns the environment n commands number.

NP var

Returns the number of external variables.

NP var("x")

Returns the number of points of the variable nn.
Examples:
x=arc(100,0,PI,6);$NP var("x"); prints 6.
x="x yy zzz";$NP var("x"); prints 3.