fn: ==
[contents]

Contents

Syntax

The syntax for == calls is:

f++:  
==(params)

n++:  
@==(params)

Description

== is the relational equals operator, it takes a non-zero number of input parameter, if any two of the input parameters are not equal it returns 0, otherwise it returns 1.

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

f++ example

Example of == being used with f++:

  1. for(int i=0; ; i+=1)
  2. {
  3. if(==(i, 10))
  4. break
  5. console("i: ", i)
  6. }

n++ example

Example of == being used with n++:

  1. @for(int i=0; ; i+=1)
  2. {
  3. @if(==(i, 10))
  4. @break
  5. @console("i: ", i)
  6. }