How do you make that when the spoken text contains certain words, it then does something else

I want to make it so that after SpeechRecognizer has a text, in blocks it is somehow done in such a way that if the received text from SpeechRecognizer contains a certain word, then it does something else (i.e. this if-then function). In short: how do you make that when the spoken text contains certain words, it then does something else. Do you know what I mean?

Welcome.

An example is here> HOW TO: Program the native SpeechRecognizer for Continuous Dictation and to do things