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

  1. :={const}(int, a)
  2. :=(int, b)
  3. console(is_const(a))
  4. console(is_const(b))

n++ example

Example of is_const being used with n++:

  1. @:={const}(int, a)
  2. @:=(int, b)
  3. @console(@is_const(a))
  4. @console(@is_const(b))