What's Quicker?

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

devNull
a ghoul
a ghoul
Posts: 121
Joined: Sat Mar 06, 2004 3:57 am

What's Quicker?

Post by devNull » Wed Apr 21, 2004 5:22 pm

/declare x local
/varset x @Param1

A) /if ( @x==SomeString )

B) /if ( ${String[@x]==SomeString} )

C) /if ( ${String[@x].Equal[SomeString] )

I guess I'm wondering if I should change my old style compares (A) to semi object-based (B) or full object-based (C).

Will == be obsoleted when the new variable method is implemented?

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Apr 21, 2004 5:35 pm

You might want to test them yourself. I think you'll find the answer is pretty clear.

Diggler
> Oid
Posts: 120
Joined: Thu Oct 09, 2003 3:28 pm
Location: Lexington, KY

Post by Diggler » Wed Apr 21, 2004 7:20 pm

What my buddy(?) DKAA here is trying to say is, /if only supports numerical comparisons now, so you won't have much luck with A or B ;)

devNull
a ghoul
a ghoul
Posts: 121
Joined: Sat Mar 06, 2004 3:57 am

Post by devNull » Wed Apr 21, 2004 8:14 pm

LOL, so true. But it was working with the files from an earlier ZIP (4/14 I think) and today's offsets (from the offsets thread) when I asked the question. :D

Oh well, moot question now.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Apr 21, 2004 8:58 pm

A would give a parsing error
B would end up /if ( NULL ) 100% of the time (which would execute "false")
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0