jeudi 9 février 2017

How to make the variable of an if statement dynamic

Hi I am trying to loop through a set of int variables and do an if on each one. I.e.

Int a0, a1, a2,a3;
For (int I=0; I < 3; I++)
{
    If ("a" + I > 10)
     {
          // do something 
     }
 }

Is this possible?

Aucun commentaire:

Enregistrer un commentaire