Quick Question About /if's

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

kabl2k
a hill giant
a hill giant
Posts: 168
Joined: Fri Feb 20, 2004 6:25 pm

Quick Question About /if's

Post by kabl2k » Sun Feb 22, 2004 12:46 pm

what is the correct syntax for mq /if's?

/if n $target(distance)>160&&$target(distance)<200 {

that look right?

i tryed /if n $target(distance)>160 && n $target(distance)<200 {

and it couldnt parse anything after && im guessing because of spaces?
also sumthin thats buggin me whats the leader n for to denot that its a number?

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Feb 22, 2004 1:16 pm

How about you do a search. I've linked people this exact info like 10 times in the last week.

fryfrog
a hill giant
a hill giant
Posts: 271
Joined: Fri Jun 20, 2003 5:37 am

Post by fryfrog » Sun Feb 22, 2004 2:06 pm

i don't think mq supports && (unless something has changed?)

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Sun Feb 22, 2004 2:25 pm