fn: is_const
[contents]

Contents

Syntax

The syntax for is_const calls is:

f++:  
is_const(variable)

n++:  
@is_const(variable)

Description

The is_const function takes a single variable or function as a parameter and returns whether the variable or function is a constant.

f++ example

Example of is_const being used with f++:

:={const}(int, a)
:=(int, b)
console(is_const(a))
console(is_const(b))

n++ example

Example of is_const being used with n++:

@:={const}(int, a)
@:=(int, b)
@console(@is_const(a))
@console(@is_const(b))