Azure-devops-docs: Counterpart to startsWith?

Created on 18 Oct 2019  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

Hey there,

is there any counterpart to the "startsWith"-parameter?
I would like to execute a task for all non-release-branches.

Kind regards,
Robin


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 cba devops-cictech devopprod product-question

All 4 comments

@RobCoPKC Thank you for the question.

Please refer to either contains or endsWith in functions.

What do you mean by counterpart?

The counterpart to "eq" would be "ne".
So I'm basically asking if there is a "doesntStartWith"-parameter.

Kind regards,
Robin

Thank you for clarifying. You will need to use not, such as:

not(startsWith('ABCDE', 'AB'))

Works flawlessly.
Thank you very much!
Please close this issue.

Kind regards,

Robin

Was this page helpful?
0 / 5 - 0 ratings