Description
The block_rows()
 function will determine whether another repeater row exists to loop through. Similar to the_post()
.
block_rows( $name );
Parameters
$name
 (string) (Required) The repeater field name
Usage
if ( block_rows( 'my-repeater' ) ) : while ( block_rows( 'my-repeater' ) ) : Â block_row( 'my-repeater' ); block_sub_field( 'my-text-field' ); Â $foo = block_sub_value( 'my-checkbox' ); if ( $foo ) { // Do something. Â Â } endwhile; endif;