How can i store the $period values in a list or a String ?
The output should be of the following type:
The period stored in the facts were “weekly”, “monthly”, “yearly”
Here is my code:
if(^query(direct_s $brand  ? ? )) {
            @0 = ^query(direct_s $brand ? ? )
            @1 = ^query(direct_s $brand ? ? )
                  ^loop($$_len){
                    $period = next(FACT @0verb )
                    $time = next(FACT @1object )
                    if($period != $$type ){
                            $difference = %fulltime - $time
                            if($difference < 50){
                              $period
} 
}
}
 }
Help me resolve this




 
                         
                        








 RSS AI Zone
 RSS AI Zone
 
            
        
     
            
            
        
            



