fn: replace_vars
[contents]

Contents

Syntax

The syntax for replace_vars calls is:

f++:  
replace_vars()
replace_vars(bool) 

n++:  
@replace_vars()
@replace_vars(bool) 

Description

The replace_vars function is for getting and setting whether to replace variables with values where applicable by default, for example with console, && and || calls. It either:

  • takes zero parameters and returns whether variables are replaced with values where applicable by default; or
  • takes a single boolean parameter specifying whether to replace variables with values where applicable by default (default value is 1).

f++ example

Example of replace_vars being used with f++:

replace_vars(0)
console(replace_vars())

n++ example

Example of replace_vars being used with n++:

@replace_vars(0)
@console(replace_vars())

Sponsors