Page 1 of 1

test channel for "invalid state

PostPosted: Mon May 29, 2017 5:43 am
by momentaryracing
Channel A sets value to invalid() on a condition

Channel B needs to set itself to a value IF A is invalid

Code: Select all
choose('B' == invalid(), somevalue, ...)


does not work (understandably)

Is there another way?

I2Pro, analysis only

Re: test channel for "invalid state

PostPosted: Mon May 29, 2017 8:29 am
by David Ferguson
How about breaking the expression that makes Channel A return invalid() into it's own math channel?

Then you can use it both in A to make some of it's data invalid, and you can use the inverse case (using choose) to determine the value for Channel B.