I guess you refer to its use as tag ending...🤔
This example may clear it up.
"Haven't you finished your homework, have you...?"
"You didn't do that, did you...?
Remember to follow the rule, positive staments negative tag endings and viceversa 😉
Leer más