You can test for advancements by entering something like: {foo=true,bar=false,custom:something={criterion=true}}

true for "they completed the advancement", false for "they have not completed the advancement"

Alternatively, pass a block of specific criteria to test for (again, true/false)