Author Topic: Variable & Value Help [Answered]  (Read 1270 times)

Yeah, it's dynamic, but it follows the same exact setup.

for(%file = initialValue; %file !$= condition; %file = modifiedValue)
for(%a=%a+1; !(%b ^ %a); %b %= %a << 12)

for(%a=%a+1; !(%b ^ %a); %b %= %a << 12)
Yes.
for(%a = initialValue; condition; %b = modifiedValue)
Even if you swap up the variable names it still follows the same scheme.

My point is that the format is so general it can be twisted into basically any form.

My point is that the format is so general it can be twisted into basically any form.
But, no it can't. It's pretty rigid. You set a variable to equal an initial value, you have a conditional statement, and you modify a variable. Sure, within those confines you can do a lot. But that's the format.

But, no it can't. It's pretty rigid. You set a variable to equal an initial value, you have a conditional statement, and you modify a variable. Sure, within those confines you can do a lot. But that's the format.
Re-railing the topic now.

Op, do you have any more questions?

I'd express it as:
for(initialStatement; condition; postIterationStatement)
The initialStatement and postIterationStatement don't even need to be variable definitions, they could be function calls

Though only I'd say for a beginner not to worry about anything other than simple incrementing or decrementing for loops

But yeah, as someone already mentioned, dump functions will tell you a lot, as well as looking through other add-ons that do something with the variable to need
And don't edit out your post once one question is answered
« Last Edit: August 25, 2012, 10:30:41 PM by Headcrab Zombie »

Right now I don't have any more questions but thank you all for the help and everything.


You should probably change the title from "[Not Answered]" then.