Sidebar

Can I use ChannelCache in a Conditional Node

0 votes
397 views
asked Aug 13, 2013 by brandon-w-8204 (33,270 points)
I need to have a condition based on a ChannelCache Variable. Is this possible since there is no ChannelCache option in the Dropdown menu.

1 Answer

0 votes
 
Best answer

Yes you can use channel cache in a conditional node. Below is a sample custom script 

 

var value = (channelCache.getValue('TEST') !== null ? channelCache.getValue('TEST') : new java.lang.String(''));

return value.equalsIgnoreCase('test');

answered Aug 13, 2013 by brandon-w-8204 (33,270 points)
...