Expression with "if"
Posted: Thu Sep 05, 2013 9:43 am
Hello,
I would like to have do this kind of expression:
if (Globals.Tags.Tag1.Value == 0 && Globals.Tags.Tag2.Value == 0){value = 1;}else{value = 0;}
How can I doing it because it seems not working like that. (I would like maybe use it with more tags in the condition) I would like the value of the tag change without delay obviously.
I tried to use it also in the script file of a tag:
if (Globals.Tags.Tag1.Value == 0 && Globals.Tags.Tag2.Value == 0){return = 1;}else{return = 0;}
Could you indicate what it the best way to do it ?
Thank you,
I would like to have do this kind of expression:
if (Globals.Tags.Tag1.Value == 0 && Globals.Tags.Tag2.Value == 0){value = 1;}else{value = 0;}
How can I doing it because it seems not working like that. (I would like maybe use it with more tags in the condition) I would like the value of the tag change without delay obviously.
I tried to use it also in the script file of a tag:
if (Globals.Tags.Tag1.Value == 0 && Globals.Tags.Tag2.Value == 0){return = 1;}else{return = 0;}
Could you indicate what it the best way to do it ?
Thank you,