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.
I would be very grateful if someone can help me as I am new but very excited at learning processing for a tangible user interface project.
My problem is I would like to know how to load up images when I display a reactivision fiducial symbol to the webcam. I hav tried the loadImage command and that loads up the image but how would I go around linking it to a fiducial symbol so I can have multiple images waiting and each one will have a different symbol to display it.