ACF Repeater Row Count Condition in Bricks

This Pro tutorial provides the steps to output elements on single posts (of any post type) in Bricks only if a specific ACF Repeater-type of custom field for that post is not empty i.e., if it has at least one row.

Add the following in child theme‘s functions.php or a code snippets plugin:

// Function to get the row count of the specified ACF Repeater field.
function bl_get_repeater_count( $field ) {
	// return have_rows( $field ) ? count( get_field( $field ) ) : 0;
	
	return have_rows( $field ) ? get_post_meta( get_the_ID(), $field, true ) : 0;
}

Now you are ready to use the above custom function in the singular template like this:

{echo:bl_get_repeater_count(requirements)}

where requirements is the name of the Repeater field.

References

https://www.advancedcustomfields.com/resources/have_rows/

https://stackoverflow.com/a/43788620