wincc script help

C

Thread Starter

clarke24

I want to make a conditional when a tag is 1 i want to set another to 1 and vice versa. Can anyone help?

i have tried SetTagBit("Tag",1); but this only sets the tag to one but not back down to 0.
 
Try this one.

int a;

a=GetTagBit("tag1");

if (a==1)
{
SetTagBit("tag2",1);
}

else
{
SetTagBit("tag2",0);
}
 
Top