Your comments

Thank you very much, Cyril !  It works with the if check.  

Hi Cyril, can you share your code segment here?  Thanks!

I am getting "react-dom.development.js:23275 Uncaught TypeError: window.sayText is not a function"

<td align="center">
{/* Embedding SitePal avatar */}
<div id="embed" className="Comment"></div>
<button name="sayButton" onClick={window.sayText("How are you doing today!", 3, 1, 3)}>Click Here</button>
</td>