I just spent a couple of hours rewriting a fully functioning script that i´ve been developing for the past few weeks. The reason i rewrote it was becouse alot of times there would be two if operators testing the same value and setting a variabel each
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">
? _metrue : _variabel1 = 1
? _metrue : _variabel2 = 2
[/QUOTE]<span id='postcolor'>
So I figured i that i could simplifie this by having only one if operator and using then {} to execute the setting of the two variabels
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">
? _metrue then
{
_variabel1 = 1
_variabel2 = 2
}
[/QUOTE]<span id='postcolor'>
Imagine the joy I felt when I discoverd that I apparently aint allowed to do that
if operator (and all other logical operators, i assume) must have their function body on the same row as the operator it self
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">
? _metrue then {_variabel1 = 1}
[/QUOTE]<span id='postcolor'>
Ok I can live with that and have the whole body of the operator on one row (they will be long and hard to debug but what you gonna do). BUT PLEASE!!!! let there be away to add more then one event to the operators body
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE">
? _metrue then {_variabel1 = 1 _variabel2 = 2}
[/QUOTE]<span id='postcolor'>
I could still use the old version of the script...but i dont want to.
HOME
Reply With Quote