Skip to content

How to put condition code in .ps1 files? #5653

Discussion options

You must be logged in to vote

.ps1 file is the case Other File Types. Note that the conditional expression should be prefixed with // like below.

  //#if(web)
  Push-Location ./Source/ContainerApps/Web/Web.TypeScript
  npm install  
  Pop-Location
  //#endif

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@StevenTCramer
Comment options

@GangWang01
Comment options

@vlada-shubina
Comment options

@StevenTCramer
Comment options

Answer selected by YuliiaKovalova
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants