Sign Up

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

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...

Error Handling

When building applications with Twidget, you may encounter situations where you need to handle errors gracefully to ensure your application runs smoothly. Twidget provides two powerful commands for error handling: `try-catch` and `throw-error`. This documentation will guide you on how to use these c...

Lists

Twidget offers a variety of commands to help you manipulate lists easily without coding. Below is a detailed explanation of each command available. Get. Description: Returns the element in the provided list at the given index. Inputs: - `list`: The list from which to get the element. - `index`: The ...

Database

Twidget offers many commands to manage data in your database. Below is a list of the available commands and their functionalities: Get Data. Retrieve an entry from a table. Get Multiple Data. Retrieve multiple entries from a table. Save Data. Save an object to a database table. Save Multiple Data. S...

Variables

Variables are essential building blocks in Twidget that allow you to store and manipulate data dynamically within your no-code applications. They enable you to create flexible and interactive applications by holding values that can be changed and referenced throughout your workflow. Creating Variabl...