Login members specific domain

in the registration area there is a way to block the registration of users who are not members of a specific domain, I thought of doing it in the IF CONDITION, does anyone know the formula

May need more details. I can paste a link below i made about making a sign up page in appgyver. You could do a check in several ways such as a get request or attempt a sign in to verify a user is in a given directory.