loop.last of a certain block type
To test if the current block is the last in the loop and of a certain type, you could do something like:

{% if loop.last and block.type == "yourBlockType" %}yes{% endif %}


or shorthand

{{ loop.last and block.type == "yourBlockType" ? 'yes' : 'no' }}


In the above example replace 'no' with '' to output nothing. It's  just there if you want to output something in case of false

or even shorter

{{ loop.last and block.type == "yourBlockType" ? 'yes' }}