
#Emit rule script for product ID:513224 Name:Sev - Thunderstorms
if (IsValidProperty(DataSource2, 'dayThunder') and (IsValidProperty(DataSource2, 'daySevere') and (1 == 1))):
    if (((gWeekDay in [0,1,2,3,4,5,6] and (1)) and ((gNational == 'NATIONAL'))) and ((DataSource2.daySevere == 1) & (DataSource2.dayThunder == 1))):
        pInfo513224 = {}
        pInfo513224['Markets'] = ['7-NATIONAL',]
        pInfo513224['ProductId'] = 513224
        pInfo513224['ProductKey'] = 513224
        pInfo513224['Priority'] = 1
        pInfo513224['ProductType'] = 'Movie'
        pInfo513224['FileName'] = 'CS1560'
        validProducts.append(pInfo513224)

#Emit rule script for product ID:513222 Name:Windy Conditions
if (IsValidProperty(DataSource2, 'dayWindSpeed') and (IsValidProperty(DataSource2, 'dayWindy') and (1 == 1))):
    if (((gWeekDay in [0,1,2,3,4,5,6] and (1)) and ((gNational == 'NATIONAL'))) and ((DataSource2.dayWindy == 1) & (DataSource2.dayWindSpeed > 30))):
        pInfo513222 = {}
        pInfo513222['Markets'] = ['7-NATIONAL',]
        pInfo513222['ProductId'] = 513222
        pInfo513222['ProductKey'] = 513222
        pInfo513222['Priority'] = 2
        pInfo513222['ProductType'] = 'Movie'
        pInfo513222['FileName'] = 'CS1560'
        validProducts.append(pInfo513222)
