fn: =
[contents]

Contents

Syntax

The syntax for = calls is:

f++:  
=(variable names, value)

n++:  
@=(variable names, value)

Description

= is the assignment operator, it takes at least two input parameters, the last parameter should be the value to be assigned and the preceding parameters should be variable names to assign the value to.

Note: It is typically faster to use exprtk for assignment operations, plus the syntax is nicer.

f++ example

Examples of = being used with f++:

:=(int, a=10, 
        b=12)
:=(string, str="hello, world!")
=(a, $[b])
=(a, b, 14)
=(str, "hello, mars!")

n++ example

Examples of = being used with n++:

@:=(int, a=10, 
         b=12)
@:=(string, str="hello, world!")
@=(a, $[b])
@=(a, b, 14)
@=(str, "hello, mars!")