The variable varname has not been set prior to the consoleLog call.<br><br>torsdag 26 juni 2014 skrev Aqs Younas &lt;<a href="mailto:aqsyounas@gmail.com">aqsyounas@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Everytime i rum this code..<br> <br><div><div><div>while (session.ready() == True):<br>                session.answer()<br>                number=session.getVariable(&quot;caller_id_number&quot;);<br>                session.setVariable(&quot;varname&quot;, &quot;hammer&quot;);<br>

                consoleLog(&quot;info&quot;,varname)<br><br></div><div>i get this error.<br><br>&quot;Message: global name &#39;varname&#39; is not defined<br>Exception: None&quot;<br><br></div><div>Don&#39;t where i am doing something wrong<br>

<br></div><div>Any help would be much appreciated.<br><br></div><div>Thanks<br></div></div></div></div>
</blockquote>