Sign Up
Loading...

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

XML commands

Use XML commands when a service sends or expects XML documents. They work with the same variable controls as other commands. Parse XML. Add Parse XML, supply the XML text and choose a mode. SIMPLE is convenient when you need fields from a straightforward document. ORDERED preserves the order of elem...

Process PDF files

Inspect a PDF, combine documents, copy selected pages into a separate file, or read existing text. Find PDF information, Merge PDFs, Select PDF pages and Extract PDF text under File Manager when adding a command to a server workflow. Use a file containing its contents. Choose an uploaded file, an ea...

Realtime commands

Use these commands in endpoints, server functions and events to connect authenticated customers and send live notifications. Start with [Realtime channels](/docs/builder/realtime) to create a channel and choose its audience. Authorize Realtime. Issue a one-use connection ticket for the signed-in cus...

AI connectors

For every command’s inputs, results, examples and common errors, open the [detailed connector reference](/docs/connectors/overview). The command editor’s help button opens its exact reference section. Use an AI provider from an endpoint, server function or event. Choose your organization's connector...

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