Page 1 of 1

Help converting an if statement

Posted: Thu May 06, 2004 4:31 am
by Furor
just need some help with this. and to see if I am doing it the best way.

Code: Select all

/if $target(id)!=@TargetId /goto :EndAF
is the old code

Code: Select all

/if (${String[${Target.ID}].NotEqual[${String[${TargetId}]}]}) /goto :EndAF
That looks sloppy to me. But there is not something like

Code: Select all

 ${Int[${blah}].NotEqual[${blah1}]}
unless I missed something.

Thanks
Furor

Posted: Thu May 06, 2004 4:44 am
by Fuergrissa
would this do it ?

Code: Select all

/if (${Target.ID}!=${TargetId}) /goto :EndAF

Posted: Fri May 07, 2004 10:27 pm
by Furor
Thanks Fuer that did the trick. I don't know what I was thinking lol. Thought Lax did away with the != sign.

After about 30mins of staring at your avatar I finally read your post and fixed my macro LOL

Thanks
Furor

Posted: Sat May 08, 2004 3:37 am
by Fuergrissa
its nice to go from a "taker" on these forums to actually understanding a little to be able to give back.
I am kinda keen on that avatar :)