Evening all,

Wonder if anyone can assist. I run the code below as a job but do not understand what print (nLoops mod 10) == 0; does. Can someone please explain because I cant work this one out.

static void ModTest(Args _args)

{

real nLoops = 1;

;

while (nLoops <= 88)

{

//print nLoops;

print (nLoops mod 10) == 0;

//pause;

// The X++ modulo operator is mod.

if ((nLoops mod 10) == 0)

{

break;

}

++ nLoops;

}

beep(); // Function.

pause; // X++ keyword.

}

The output I receive when running the code is:

0

0

0

0

0

0

0

0

0

1

I was expecting the raminder to be displayed!!!

And also what does it mean when you change:

(nLoops mod 10) == 0;

to

(nLoops mod 10) == 1;

or

(nLoops mod 10) == 2; for example.

Thanks and kind regards,

Tom