Macro.Return

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Macro.Return

Post by Falco72 » Mon Apr 26, 2004 5:50 pm

I am posting this here cause I dont know if this is a bug or not.
I have a sub like this

Code: Select all

Sub Any
/return "abc"
in the main this piece of code

Code: Select all

/echo ${Macro.Return}
give as results "abc", but

Code: Select all

/echo ${Macro.Return.Equal["abc"]}
give FALSE as result.
Insteed if the return do not use "", like

Code: Select all

Sub Any
/return abc
this piece of code

Code: Select all

/echo ${Macro.Return.Equal["abc"]}
results TRUE.

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 » Mon Apr 26, 2004 6:09 pm

Not really a bug, just the way MQ2Data works. When MQ2Data sees quotes at the start of your [], it strips the first set and assumes thats the entire thing (or something, there might be some bugs with quotes actually, but not the one you're asking about).

All in all, you should just avoid using quotes in your return to enclose a value ;)
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0