Ethershade Beginner
Joined: 17 Oct 2008 Posts: 11
|
Posted: Fri Oct 24, 2008 6:39 pm
Unable to use #break? |
I made this code, but the loop doesnt break when the variable equals 1. Any thoughts as to whats wrong?
Code: |
herbamount = %1
herbtarget = %2
herbtotal = %1
#echo
#echo Commencing harvesting!
#loop @herbamount {
#if (herbabort=1) {#break}
harvest @herbtarget
#add herbamount -1
#waitfor {^You have recovered balance}
}
#echo
inr all spices
inr all @herbtarget
herbabort=0
#echo Harvesting Completed! |
Solved it, added a @ before the variable |
|