Mel Scripting Issue


#1

I want to print int $i=1,2,3,4,__to 01,02,03,01
How can i do this with mel.


#2

What you want is the MODULO or sometimes called FRAC operator, more simply known as the percent symbol %
This takes one number, divides it by another number and spits out the remander.


for($i=0;$i<20;$i++){
    $output = ($i % 4);
    print ("0"+$output+",");
}
>>>00,01,02,03,00,01,02,03,00,01,02,03,00,01,02,03,00,01,02,03


MAy all your dreams come true