Skip to content

Selectors vs Functions #2521

Closed Answered by BernieWhite
paulmccrady asked this question in Q&A
Discussion options

You must be logged in to vote

@paulmccrady When writing PowerShell rules you can use either. When using YAML/ JSON rules you are only able to use a Selector.

In general, selectors (-With) and script pre-conditions (-If) can be used interchangeably.

We prefer use of Selectors over script pre-conditions because we are making efforts to optimize this use case. However, currently not all expressions or use cases can be supported using the YAML/ JSON syntax supported by selectors today.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paulmccrady
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants