Hey all,
Experimenting with Structured Text more.
Does anyone know a way where you can set an int or any numerical variable type to multiple values in a single line based on an expression?
EX:
Is there a structure which would let me do all that in a single line?
Thanks!
Experimenting with Structured Text more.
Does anyone know a way where you can set an int or any numerical variable type to multiple values in a single line based on an expression?
EX:
Code:
Var_a = 0 := X>Y;
Var_a = 1 := Y>X;
Var_a = 2 := X=Y;
Is there a structure which would let me do all that in a single line?
Thanks!