photons
11-13-2005, 03:43 AM
guys iam new toscripting in mel i am looking for a practical way to learn it i think it more effective.
I have knowledge of programmingthe but in mel i dont know the tecnique where to declare what and why like variables when uare using expression editor--do they get re initialized or get multiple declaration....can u give a brief intro about it would be really helpful
ok this is a small program i made to check the looping concept
int $a =1;
if($a<100){
print("\na is less than 100 it is "+$a);
$a++;
}
else
{
print("its reach " $a " it a number below it");
}
now i type this in script editor and run it and i get only one print line of the text where i was expecting the print command to be executed 99times-- one after the other......i think it is get reset again when the first part of if statement is executed how do i avoid this have i declared the variable in the wrong place or i should declare it some where else
support me i am going bonkers!!@@#@#@#!@!
regards
The photon Master
one more thing : most of the link on mel that are mentioned on cgtalk i find them dead can any one please pass me a active link on mel for biggners or any thing similar to that
I have knowledge of programmingthe but in mel i dont know the tecnique where to declare what and why like variables when uare using expression editor--do they get re initialized or get multiple declaration....can u give a brief intro about it would be really helpful
ok this is a small program i made to check the looping concept
int $a =1;
if($a<100){
print("\na is less than 100 it is "+$a);
$a++;
}
else
{
print("its reach " $a " it a number below it");
}
now i type this in script editor and run it and i get only one print line of the text where i was expecting the print command to be executed 99times-- one after the other......i think it is get reset again when the first part of if statement is executed how do i avoid this have i declared the variable in the wrong place or i should declare it some where else
support me i am going bonkers!!@@#@#@#!@!
regards
The photon Master
one more thing : most of the link on mel that are mentioned on cgtalk i find them dead can any one please pass me a active link on mel for biggners or any thing similar to that
