if(var & lt; 2 1)
var = var+ 1;
else var = 0;
SetTagWord(tag 1,var);
Returns 0;
Where did you put the script? Is it background operation or simple I/O display?