I saw this and was wondering if there was a similar function that can be written that detects if a certain block is the last block on a page.
https://support.advancedcustomfields.com/forums/topic/conditional-to-check-if-an-instance-of-a-block-is-the-first-on-page-post/