'Is this the first time the user is being asked? - Get the prompt number for a question in Bot Framework Composer

So I have some questions in Bot Framework Composer 2.x that can be interrupted. No problem.

If the user interrupts, the interruption is dealt with and then the initial question is re-asked.

I want to know how to detect whether this is the first time the question is asked or not.

I thought this.turnCount might be it, but it seems always to be 1. For one question, dialog.eventCounter works: it reads 1 the first time and a higher number the second. But for other questions, it always reads 1.

So. Welcome thoughts on a reliable way to tell if it is the first prompt of a question.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source