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++:

  1. n++(./script.n)
  2. n++
  3. {
  4. @:=(string, str="hello, world!")
  5. @console(str)
  6. }
  7. n++
  8. {
  9. @for(:=(int, i=0); i<10; i+=1)
  10. @console("i: ", i)
  11. }