Skip to main content

Create Functions

A function is a block of reusable Decipad language used to perform a set of operations.

Decipad has a series of built-in functions that you can call. See full Functions List

This is how you call a functions in Decipad:

Custom functions

Custom functions allow you to create your own functions inside Decipad.

They can be defined as follows:

Syntax: CustomFunctionName (first argument, ..., last argument) = your custom expression

To illustrate, we will create a function to determine if a given number is even.