In this section we will define a function that takes two numerical inputs and returns a Boolean value indicating whether they are equal. We will also take a look at how to use the function.
The following function is called equals and it takes two parameters of type u64 (64-bit unsigned integers). It performs a comparison and implicitly returns the result of that comparison.
{{#include ../../../code/language/functions/src/lib.sw:equals}}The following is a way to use the function defined above.
{{#include ../../../code/language/functions/src/lib.sw:usage}}