Quick help on /if statement

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

User avatar
driftinsupra
Official loudmouth
Official loudmouth
Posts: 212
Joined: Tue Jan 28, 2003 9:25 pm

Quick help on /if statement

Post by driftinsupra » Thu Dec 11, 2003 2:22 pm

ok I am trying to make a macro for the use of DKAA's new bazaar plugin yet I am running into some slight problems.

Code: Select all

/if $ini(@file,names,val@counter)=="NOTFOUND" {
    /echo Starting search over
    /varset counter 1
    /goto :mainloop
    }
All this code is supposed to do is check if there is any data in the val position determined by the counter and if there isnt then it starts over. The problem I am having now when my code get to that if statement and see what I have in val1 which is Words of Something. If give me an error something like this:

No comparison operator in "words"

I have had this problem alot and usually I just use the id number to get around it but I cant in this case since I cant search for an id number. Anyone wanna terll me what I am doing wrong?

User avatar
driftinsupra
Official loudmouth
Official loudmouth
Posts: 212
Joined: Tue Jan 28, 2003 9:25 pm

Post by driftinsupra » Thu Dec 11, 2003 2:28 pm

Nevermind...I figured it out

Shali
a ghoul
a ghoul
Posts: 87
Joined: Sun Dec 07, 2003 12:39 pm

re

Post by Shali » Thu Dec 11, 2003 4:26 pm

gj....but, you got a supra?....such beautiful cars

User avatar
driftinsupra
Official loudmouth
Official loudmouth
Posts: 212
Joined: Tue Jan 28, 2003 9:25 pm

Post by driftinsupra » Thu Dec 11, 2003 6:11 pm

yup 89 supra...dynoed at 346hp 363tq

Shali
a ghoul
a ghoul
Posts: 87
Joined: Sun Dec 07, 2003 12:39 pm

re

Post by Shali » Fri Dec 12, 2003 12:08 am

ahh, an older supra, not quite as pretty, but can certainly be as quick :D