Checking for null object type parameter in Azure YAML
问题 I'm setting up a build template and can't figure out the syntax for an optional object type parameter. In my pipeline I'm calling the template like this: stages: - template: aspnet-core.yml@templates parameters: database: name: 'SomeDatabase' server: 'SomeServer' I have the parameter defined like this in the template: parameters: database: null I want to do a check like this in the template so I can run a task conditionally: - ${{ if ne('${{ parameters.database }}', null) }}: However, it's