About 2,240,000 results
Open links in new tab
  1. about_Variables - PowerShell | Microsoft Learn

    Working with variables To create a new variable, use an assignment statement to assign a value to the variable. You don't have to declare the variable before using it. The default value of all variables is …

  2. How to: Create a New Variable - Visual Basic | Microsoft Learn

    Sep 15, 2021 · How to: Create a New Variable (Visual Basic) You create a variable with a Dim Statement.

  3. about_PSItem - PowerShell | Microsoft Learn

    PowerShell includes the $PSItem variable and its alias, $_, as automatic variables in scriptblocks that process the current object, such as in the pipeline. This article uses $PSItem in the examples, but …

  4. New-Variable (Microsoft.PowerShell.Utility) - PowerShell

    The New-Variable cmdlet creates a new variable in PowerShell. You can assign a value to the variable while creating it or assign or change the value after it is created.

  5. Variables (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · The scope of a variable is the range of Transact-SQL statements that can reference the variable. The scope of a variable lasts from the point it's declared until the end of the batch or stored …

  6. Predefined variables - Azure Pipelines | Microsoft Learn

    Use Copilot to generate a stage with a condition determined by the value of a variable. This example prompt defines a stage that runs when Agent.JobStatus indicates that the previous stage ran …

  7. about_Environment_Variables - PowerShell | Microsoft Learn

    Aug 27, 2025 · Any environment variable you add or change in your PowerShell profile is available in any session that loads your profile. This method works for any version of PowerShell on any …

  8. Define variables - Azure Pipelines | Microsoft Learn

    Oct 27, 2025 · User-defined variables can be set as read-only. There are naming restrictions for variables (example: you can't use secret at the start of a variable name). You can use a variable …

  9. Understand variables in canvas apps - Power Apps | Microsoft Learn

    Aug 27, 2025 · To declare a variable and its type, just include it in any of these functions anywhere in your app. These functions don't create variables; they only fill variables with values. You never …

  10. Set function - Power Platform | Microsoft Learn

    Mar 22, 2024 · Use the Set function to set the value of a global variable, which temporarily holds a piece of information, such as the number of times the user has selected a button or the result of a data …