IF n00b

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

SeanRare
decaying skeleton
decaying skeleton
Posts: 5
Joined: Mon Apr 19, 2004 3:52 pm
Location: Salt Lake City, UT

IF n00b

Post by SeanRare » Fri Apr 23, 2004 12:54 am

Okay. I've done some programming in my time and this should be really basic, but it's not working.

Code: Select all

|	Please work

#turbo 380 

Sub main 

/zapvars 

/Declare PleaseWork global 
/varset PleaseWork TRUE

/if @PleaseWork==TRUE  { 
	/tell Scooby Well well well!
} else {
	/tell Scooby Lame!
}

/endmacro 
MQ2 tells me:
Ending macro: Failed to parse /if command
testing.mac@12 (main): /if @PleaseWork==TRUE {
Tried doing the /newif and same result. Thinking I might have typed something wrong, I grabbed ElRetardo's /if example and got the same error.

So... what am I doing wrong? TIA! :P

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 » Fri Apr 23, 2004 1:25 am

put () around the conditions of all /ifs now

next zip will be more specific ;)

/if (@PleaseWork==TRUE) {
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

SeanRare
decaying skeleton
decaying skeleton
Posts: 5
Joined: Mon Apr 19, 2004 3:52 pm
Location: Salt Lake City, UT

Wooooo!

Post by SeanRare » Fri Apr 23, 2004 1:45 am

Yesh! That was it. Thx Lax. BTW... you're a freak'n GOD! :)