Remove a global variable
Function: Remove a global variable
This action allows you to delete a specific piece of information (a "global variable") that is stored and accessible throughout your application. Once removed, this information will no longer be available for use in other actions or parts of your application. This is useful for cleaning up temporary data or resetting states.
Input
- Variable name (STRING, Required): The unique name you gave to the global variable you want to remove.
Output
None. This action performs a deletion and does not return any specific data.
Execution Flow
Real-Life Examples
-
Example 1: Clearing a temporary user selection
- Inputs:
- Variable name:
SelectedProductId
- Variable name:
- Result: The
SelectedProductId
variable is removed from the application's memory, ensuring that a new product selection can be made without interference from a previous temporary choice.
- Inputs:
-
Example 2: Resetting a user's preference after a session
- Inputs:
- Variable name:
UserThemePreference
- Variable name:
- Result: The
UserThemePreference
variable is deleted, so the next time the user logs in or starts a new session, the application will revert to its default theme or prompt the user to set a new preference.
- Inputs:
-
Example 3: Removing a flag after a process is complete
- Inputs:
- Variable name:
OrderProcessingComplete
- Variable name:
- Result: The
OrderProcessingComplete
variable is removed, indicating that the order processing workflow has finished and any subsequent checks for this flag will find it absent, preventing re-execution of completed steps.
- Inputs: