Next block inside of a loop I’m struggling with getting the next block inside of a loop of a Matrix-Field. I’ve tried this:

{% set nextBlock = entry.articleContent.offset(1).limit(1) %}
{% if nextBlock.type == "textBox" %}
 {{ nextBlock.textTitle }}
{% endif %}


This produces an ArgumentCountError. Can someone help me with this issue?
Try doing something like:

{% set nextBlock = block.getNext() %}


https://craftcms.com/docs/templating/matrixblockmodel#getNext