#import "REABlockNode.h" #import "REANodesManager.h" @implementation REABlockNode { NSArray *_block; } - (instancetype)initWithID:(REANodeID)nodeID config:(NSDictionary *)config { if ((self = [super initWithID:nodeID config:config])) { _block = config[@"block"]; } return self; } - (id)evaluate { id result; for (NSNumber *inputID in _block) { result = [[self.nodesManager findNodeByID:inputID] value]; } return result; } @end