Sign Up

Command Output

Some commands in Twidget return outputs, which are essential for dynamic and conditional logic within your workflows. These outputs are displayed next to the command and are prefixed with an "as" to indicate the variable name.

-

Using Output Variables

Once a command returns an output, you can use these output variables throughout the code builder interface. To reference them:

  1. Open the Variable Builder: You can access the Variable Builder by selecting the Variable type within any module that supports variable inputs.

  2. Select or Search for Variables: The Variable Builder presents a dropdown list of all available variables, including both the output variables and any global variables you've defined. You can search through this dropdown by typing text to quickly find the variable you need.

Renaming and Viewing Output Variables

  • Edit Command Sidebar: You can rename the output variables to more meaningful names that better fit your context by navigating to the edit command sidebar.

  • Output Section: Some commands feature an Output section where you can:

    • Edit Output Name: Change the default output variable name to a customized name.

    • View Output Schema: See the structure and data types of the output to understand what kind of data the command returns.

Related Topics

Publishing Changes

With Twidget's publishing feature, you can seamlessly push your changes live, ensuring that your updates take effect on the specified endpoint, function, or event. This feature also allows for version control, enabling you to revert and manage different versions of your changes effectively. Steps to...

Testing

In Twidget, you can easily test your endpoints and functions directly within our code builder. This guide will walk you through the steps to efficiently test your functions to ensure they meet your requirements. Running Tests. To start testing, follow these steps: 1. Open Code Builder: - Navigate to...

Inputs

Overview. In Twidget, inputs are essential elements that allow you to configure endpoints and functions. Events do not use inputs. Endpoint Inputs. Endpoint inputs are used to retrieve data from requests. The available types of endpoint inputs are: 1. Path: Variables that are part of the URL path. 2...

Global Variables

Global variables in Twidget are key-value pairs that can be used anywhere across events, endpoints, and functions. They provide a powerful way to manage and share data throughout your projects. Key Features. - Data Types: Global variables support text, number, boolean, and date data types. - Securit...

Data Types

Twidget supports six main data types to facilitate interactions within the platform. These data types are essential for defining inputs, outputs, and table fields, helping users understand the nature of the data being handled. The available data types in Twidget are as follows: Text. - Description: ...