Blockland Forums > Modification Help
Iban Explains it All
<< < (10/39) > >>
Treynolds416:
Grrrr, this is why I hate syntaxes:


--- Code: ---function Test();
{
(%i = 0)
(%j = 0)
echo("The variables are currently "@%i@" and "@%j);
}
--- End code ---
I know this will work fine if I leave the local variables undefined, but I would like to know why this specifically will not work without returning syntax errors.
Iban:
I have no idea where you got the notion to encapsulate the variable declaration in parenthesis.

%i = 0;
%j = 0;
Treynolds416:

--- Quote from: Iban on March 04, 2011, 06:40:05 PM ---I have no idea where you got the notion to encapsulate the variable declaration in parenthesis.

%i = 0;
%j = 0;

--- End quote ---
I tried with and without.

And also I just hit myself again
Iban:
I don't know how else I can better explain a statement. It is the most fundamental of aspects in any coding language and it seems to go over your head.
otto-san:

--- Quote from: Iban on March 04, 2011, 06:43:11 PM ---I don't know how else I can better explain a statement. It is the most fundamental of aspects in any coding language and it seems to go over your head.

--- End quote ---

You have to start somewhere and apparently he starts where he doesn't know how to do statements.

I sure didn't know how to do them correctly when I started learning. :o
Navigation
Message Index
Next page
Previous page

Go to full version