variable with variable name|tungstene|tungstene@free.fr|1364804416|tungstene|xx|0|88.167.184.18|Hello<br />I would change the fair name of a variable. <br />I am looking for a solution for hours but I can not find.<br />example:<br /><br />! global id2 = 1234<br />! global age&lt;env id2&gt; = 34<br /><br />// done age1234 = 34<br />how can i call this new variable ,<br /><br />+ test<br />- &lt;env age&lt;env id2&gt;&gt;<br /><br />Dont work ! say: undefined&gt;<br /><br />It's impossible ? ||||
Re: variable with variable name|Kirsle|casey@cuvou.net|1364832766|Kirsle|xx|0|76.168.196.14|That's not possible for a couple of reasons.<br /><br />First, tags aren't parsed with the ! command. Tags only get parsed in triggers and most reply-like things (replies, redirections, conditions, etc.)<br /><br />Second, embedding the same type of tag inside itself doesn't work because of the regular expressions used to parse the tags out. For the &lt;env&gt; tag, the regexp looks like: /&lt;env (.+?)&gt;/.<br /><br />So when you have &lt;env age&lt;env id2&gt;&gt;, the regexp ends up matching, [color=red]&lt;env age&lt;env id2&gt;[/color]&gt;, where the &quot;variable&quot; it's looking at is named &quot;age&lt;env id2&quot;.||||
Re: variable with variable name|tungstene|tungstene@free.fr|1364853387|tungstene|xx|0|88.167.184.18|ok thx for your explication. :(<br /><br />||||
