Sign Up
Loading...

Math

Twidget offers a variety of commands to manipulate numbers. Below are the math commands available, along with their descriptions, inputs, and outputs.

Sum

Description: Adds together a list of numbers and returns the sum.

  • Inputs:

    • numbers: A list of numbers to be added together.
  • Output: A single number representing the sum of the input numbers.

Subtract

Description: Subtracts one number from another.

  • Inputs:

    • number_1: The number to subtract from.

    • number_2: The number to subtract.

  • Output: A single number representing the result of the subtraction.

Multiply

Description: Multiplies together a list of numbers and returns the product.

  • Inputs:

    • numbers: A list of numbers to be multiplied together.
  • Output: A single number representing the product of the input numbers.

Divide

Description: Divides one number by another.

  • Inputs:

    • number_1: The dividend (number to be divided).

    • number_2: The divisor (number to divide by).

  • Output: A single number representing the quotient of the division.

Modulo

Description: Computes the remainder of one number divided by another.

  • Inputs:

    • number_1: The number to be divided.

    • number_2: The number to divide by.

  • Output: A single number representing the remainder of the division.

Equals

Description: Checks whether two numbers are equal.

  • Inputs:

    • number_1: The first number.

    • number_2: The second number.

  • Output: A boolean indicating whether the numbers are equal (true) or not (false).

Not Equal

Description: Checks whether two numbers are not equal.

  • Inputs:

    • number_1: The first number.

    • number_2: The second number.

  • Output: A boolean indicating whether the numbers are not equal (true) or not (false).

Greater Than

Description: Checks whether the first number is greater than the second number.

  • Inputs:

    • number_1: The first number.

    • number_2: The second number.

  • Output: A boolean indicating whether the first number is greater than the second number (true) or not (false).

Less Than

Description: Checks whether the first number is less than the second number.

  • Inputs:

    • number_1: The first number.

    • number_2: The second number.

  • Output: A boolean indicating whether the first number is less than the second number (true) or not (false).

Greater Than or Equal

Description: Checks whether the first number is greater than or equal to the second number.

  • Inputs:

    • number_1: The first number.

    • number_2: The second number.

  • Output: A boolean indicating whether the first number is greater than or equal to the second number (true) or not (false).

Less Than or Equal

Description: Checks whether the first number is less than or equal to the second number.

  • Inputs:

    • number_1: The first number.

    • number_2: The second number.

  • Output: A boolean indicating whether the first number is less than or equal to the second number (true) or not (false).

Related Topics

Connector Commands

Connector Commands allow you to integrate Twidget projects with external services such as Google Drive, Slack, OpenAI’s ChatGPT, and many others. These commands provide ready-made actions that communicate with third-party APIs, removing the need to manually create and maintain external HTTP requests...

Local Storage

Twidget provides a set of local storage commands that enable interaction with the browser’s `localStorage` API through a no-code interface. These commands are useful for storing, retrieving, and managing key-value data persistently within the current domain context. Purpose. These commands abstract ...

Return

The `return` command in Twidget is a special command used to halt the current command workflow and immediately return a specified result. This command overrides any subsequent processes and outputs the return result regardless of the rest of the workflow logic. This command is particularly useful fo...

Loops

In Twidget, loops allow you to execute commands multiple times, either based on a condition or through a set number of iterations. Loops can also be nested, meaning you can run loops within other loops, creating complex logic for your tasks. List Loop. The `List Loop` command enables you to loop thr...

Date

Twidget offers a variety of commands to manipulate date objects. Below are the available commands along with their respective descriptions, inputs, and outputs. Current Date. Description: Returns the current date and time. Output: - Type: DATE Add Time. Description: Returns the date plus a specified...