Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3197

Creating a new channel and adding values to it based on values in other channel

$
0
0

Hello,

I am fairly new to DIAdem and I am trying to do basic channel operation.

I have a channel where the values are text (True or False). I want to create a new channel and add values to the new channel based on the values in the first channel. If the first channel value is true, I want to add 1 and if the value it is False, I want to add 0. I have written a script where it creates a new channel. And I am trying to use if...then...else statement to set my conditions for each true or false values statement. I am stuck on how to cross reference the first channel within the if statement so that I can set my 'then' and 'else' condition.

I am reaching out to experts here to get this sorted out. Kindly let me know what I should be doing here. Thank you.


Viewing all articles
Browse latest Browse all 3197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>