[Console Dialog Helper] Fix logic of code example

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | -
| Fixed tickets | -