Mtext with lisp and leftover variables

Is there any way to force the mtext dialog box to display when called from a lisp command function?
Is there any way to test for variables that may have gotten left out of the
local variables list.
Thanks Cliff
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file
Upload is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.