new with predicates, how does it work

i wanted to do a predicate to check this things

Continue to help post