<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div dir="ltr"><span></span></div>
<div dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In&nbsp; &quot;&nbsp;<span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;"><strong>ChucK</strong></span><span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;">&nbsp;</span><span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;">:
 Language Specification &gt; Concurrency &amp; Shreds&quot; i read about using global variables.</span>
<h1 style="font-size: 18px; font-weight: 200; font-family: verdana, helvetica, sans-serif; text-align: -webkit-center; background-color: rgb(255, 255, 255)">
<span style="font-size: 11pt; font-family: Arial, Helvetica, sans-serif;"></span></h1>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;">Unfortunately i don't succeed changing the variables in a way that the function uses this changed value of the variable.
 It keeps on using the old (initial)</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;">&nbsp;value&nbsp; of this variable. What am i doing wrong??</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;">This is my script:</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-weight: 200; text-align: -webkit-center; color: rgb(0, 0, 0); font-size: 11pt; font-family: Arial, Helvetica, sans-serif;"><br>
</span></div>
</div>
</body>
</html>