Hello,
I want to use if condition inside for loop. As of now, i know that if condition should be use with LCV of the for loop.
I am using the same,
#define I3EQUALS2 ((I3==2))
for(int I3=0;I3<3;I3++)
{
if(I3EQUALS2)
{
//code to be execute
}
}
But I'm getting below error on console,
error #26001-D: syntax error - expected IDENTIFIER
error #26001-D: syntax error near ')'
error #26001-D: syntax error near '='
,m...something like this.
Please suggest solution for this!!