Simple logic
Posted: Fri Apr 17, 2015 4:57 am
Dear experts,
I am new in iX Developer and C# and I need to write a simple logic script like this:
IF Bit0 == 1 THEN
Bit1 = 1;
END_IF;
This is what I tried to do in iX, but in my understanding there is something missing, because IF statement doesn't execute.
Would be very glad if someone could help.
I am new in iX Developer and C# and I need to write a simple logic script like this:
IF Bit0 == 1 THEN
Bit1 = 1;
END_IF;
This is what I tried to do in iX, but in my understanding there is something missing, because IF statement doesn't execute.
Code: Select all
public partial class ScriptModule1
{
void Test()
{
if (Globals.Tags.BIT0.Value == 1)
Globals.Tags.BIT1.Value = 1;
}
}