Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Loaf

Pages: [1]
1
Axe / Re: break
« on: August 22, 2013, 06:23:34 pm »
Go on and make us some good programs! ;)

I've already made a few.
Roids - your standard space shooter. However, very rudimentary and slow. Also the enemies shoot back :D
Snake - its bloody snake, what do you expect :/
TIBlocky - a port of minecraft existing in two dimensions :D With flowing water as well. Only a few types of blocks. (heavily under development)

I just needed to know if there was a method for return, because the way I was doing it before was bothering me.

2
Axe / Re: break
« on: August 22, 2013, 06:13:36 pm »
Endif == true => continue ( directly go to loop begin)
Endif == false => break; ( stop the loop).
(It's what I understood from Runner)

After rereading Mr. Runer's post, I am going to agree with you. Also, I now feel like I should have been able to think of AT LEAST setting the iteration variable to a terminating value to break. I'm so uncreative :(

EDIT: Ooh i'm level one now.

3
Axe / Re: break
« on: August 22, 2013, 06:09:18 pm »
So endif goes inside or at the end of the loop?
From what you've described, I can't see it going at the end, because that would make its 'continue' functionality useless.

4
Axe / Re: break
« on: August 22, 2013, 05:56:32 pm »
Why thank you, my dear Runer. That will work perfectly for my feeble needs. :D

5
Axe / Re: break
« on: August 22, 2013, 05:53:33 pm »
Would you be kind enough to give me an example of that? Does it go after a loop or after an if-statement? Practically anything would be better than the way i'm doing it now XD.

6
Axe / break
« on: August 22, 2013, 05:38:12 pm »
Noob question here. I have made a preliminary look at questions here, and could not find an answer. I also looked at the Axe Parser Documentation. Is there a way to break out of a loop? Thus far, right before my loop, I have been setting a variable to act as a boolean flag to whether the loop should continue or not. For example,

C = 1
for(T,0,10)
if(C)
code here, in the place of an actual "break" i would put "C = 0"
end:end

However, this is seems clunky and slow, because not only do I have to perform an extra boolean test, I have to finish the loop regardless of the iteration at which C is set.

Based on other questions, this appears to be the right board for this question. However, if not, I apologize in advance.

Pages: [1]