This function returns the current record level.

LEVEL()

Next page: LEVELINGROUP