Hi, Chaitra
The main difference between them is all_vars() check if the condition is satisfied for all variables whereas any_vars() checks if any field satisfies the condition.
Both the variables can be used with dplyr functions such as filter,select and summarize.