How Can I Include a Conditional for First Type of Matrix
You could first set a variable to test against and then change it the first time the block type appears.

{% set firstTime = true %}

{% for block in entry.matrixField %}

    {% if block.type == "text" and firstTime == true %}

        ...Do something once...

        {% set firstTime = false %}

    {% endif %}

{% endfor %}