if statement
Posted: Sun Dec 14, 2014 10:45 pm
I am trying to write a macro for my necro to fight along side my mage. For some reason I cannot get the if statement to run.
This works.
Sub Main
/declare Dist int outer ${Target.Distance}
:Check
/gsay ${Dist}
/goto :Check
/return
This does not.
Sub Main
/declare Dist int outer ${Target.Distance}
:Check
/if (${Dist}<30){
/gsay Target is in range
}else /if (${Dist}>30){
/gsay Target out of range
}
/return
Can someone help or point me in the right direction.
Error code.
Failed to parse /if command. Could not find command to execute.
Thanks in advance for any help
This works.
Sub Main
/declare Dist int outer ${Target.Distance}
:Check
/gsay ${Dist}
/goto :Check
/return
This does not.
Sub Main
/declare Dist int outer ${Target.Distance}
:Check
/if (${Dist}<30){
/gsay Target is in range
}else /if (${Dist}>30){
/gsay Target out of range
}
/return
Can someone help or point me in the right direction.
Error code.
Failed to parse /if command. Could not find command to execute.
Thanks in advance for any help