Sign Up

Miscellaneous

Twidget provides several miscellaneous commands to facilitate various tasks.

Is Null

Description:

Checks whether the provided value is null or not.

Inputs:

  • value: The value to be checked.

Output:

  • boolean: Returns true if the value is null; otherwise, returns false.

Not Null

Description:

Checks whether the provided value is not null.

Inputs:

  • value: The value to be checked.

Output:

  • boolean: Returns true if the value is not null; otherwise, returns false.

Reverse Boolean

Description:

Returns the opposite boolean value of the input.

Inputs:

  • boolean: The boolean value to be reversed.

Output:

  • boolean: Returns true if the input is false, and false if the input is true.

Log

Description:

Logs the provided text to the console or log file.

Inputs:

  • log_level: The log level (e.g., INFO, DEBUG, ERROR).

  • message: The message to be logged.

Output:

None.

Generate Random String

Description:

Generates a random string of the specified length with optional inclusion of letters and numbers.

Inputs:

  • length: The length of the random string.

  • include_letters: Whether to include letters in the string.

  • include_numbers: Whether to include numbers in the string.

Output:

  • text: A randomly generated string.

Generate Random Number

Description:

Generates a random number between the specified minimum and maximum values.

Inputs:

  • min: The minimum value for the random number.

  • max: The maximum value for the random number.

Output:

  • number: A randomly generated number within the specified range.

Send Password Reset Email

Description:

Sends a user a password reset email containing a reset key.

Inputs:

  • email: The email address of the user.

  • reset_key: The reset key to be included in the email.

Related Topics

Send Message

Send SMS Command. With Twidget, you can send SMS messages to phones using the `Send SMS` command. This functionality varies depending on the provider. Currently, we support Twilio as the SMS provider. To use Twilio for SMS integrations, you will need: - A Twilio account ID - Twilio Auth Token - A Tw...

Managing Files

Twidget offers a set of commands to manipulate files in your file store. Below are the descriptions and usage of each command to help you understand how to utilize them effectively. Get File. Retrieve a file via file path. Inputs: - `path`: The file path to retrieve the file from. Outputs: - `filena...

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

Session Storage

Twidget includes a suite of session storage commands that enable no-code interaction with the browser’s `sessionStorage` API. These tools allow temporary storage of key-value data for the current page session. Purpose. Session storage commands allow developers to manage transient data tied to a sing...

Conditionals

Condition Command. The Condition Command allows you to perform actions based on whether an expression evaluates to true or false. You can nest other commands within the true or false branches of the condition, enabling complex logic flows. - Expression Builder: Validate two variables to equal true. ...