Hello,
I was wondering if anyone can help me.
I am using processing and would like to insert IF statement within an IF statement. For example if the outer box
if (i==1)
{
background(bg1);
if(i==1)
{
background(bg2);
}
if(i==2)
{
background(bg3);
}
}
if (i==2)
{
background(bg10);
if(i==1)
{
background(bg11);
}
if(i==2)
{
background(bg12);
}
}
etc, as you can see I am reusing the same id but with in different IF statements it carries out differing functions. Is this possible and if not how can I acheive the reusing of the same values for differing tasks.
Thanks!
1
