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

for(int i=0; ; i+=1)
{
	if(==(i, 10))
		break
	console("i: ", i)
}

n++ example

Example of == being used with n++:

@for(int i=0; ; i+=1)
{
	@if(==(i, 10))
		@break
	@console("i: ", i)
}