fn: n++
[contents]

Contents

Syntax

The syntax for n++ calls is:

f++:  
n++{options}(file-path)
n++{options}
{
	//block of n++ code
}


f++:  
@n++{options}(file-path)
@n++{options}
{
	//block of n++ code
}

Description

The n++ function is for evaluating n++ code, it takes zero parameters with the call followed by a block of n++ code otherwise a single parameter that should be a file-path to n++ code to be parsed. See here for more information about n++.

Options

The following options are available for n++ calls:

option description
!o do not return output
o return output
option description

f++ example

Example of n++ being used with f++:

n++(./script.n)
n++
{
	@:=(string, str="hello, world!")
	@console(str)
}
n++
{
	@for(:=(int, i=0); i<10; i+=1)
		@console("i: ", i)
}