lol,
Correct,
So I am sending a report of each product that needs product documentation
What I am trying to do is:
If there is 1 or more products that need product documentation
Write: Product Documentation
Otherwise do nothing
Currently, If the first product doesn’t need documentation, but other do, this condition wont fire.
Now I don’t want to write “Product Documentation” for each product that needs it, only once if there are products that need it.
See the full Template here, may help:)
<<START:FILTER( Settings , isnotblank([Custom Greeting (Based on 9:00am Sending Time)]))>>
<<[Custom Greeting (Based on 9:00am Sending Time)]>>
<<END>>
<<IF: OR(and([Third Party Certificates UTD] <> "Green",[Third Party Certificates UTD] <> "Blue",OR([LR Third Party Certificate] < (TODAY() - 14),isblank([LR Third Party Certificate]))),and([Proposition 65 UTD] <> "Green",[Proposition 65 UTD] <> "Blue",OR([LR Proposition 65] < (TODAY() - 14),isblank([LR Proposition 65]))))>>
Supplier Documentation
<<IF:and([Third Party Certificates UTD] <> "Green",[Third Party Certificates UTD] <> "Blue",OR([LR Third Party Certificate] < (TODAY() - 14),isblank([LR Third Party Certificate])))>>
* Third Party Audit Documentation
<<EndIF>>
<<IF:and([Proposition 65 UTD] <> "Green",[Proposition 65 UTD] <> "Blue",OR([LR Proposition 65] < (TODAY() - 14),isblank([LR Proposition 65])))>>
* Proposition 65 Documents
<<EndIF>>
<<EndIF>>
<<If: Count([Related Products])>0>>
<<Start: [Related Products]>>
<<If: (Or(And([Product Specifications UTD] <> "Green",[Product Specifications UTD] <> "Blue", OR([LR Product Specifications] < (TODAY() - 14),isblank([LR Product Specifications]))),And([Allergen Statements UTD] <> "Green",[Allergen Statements UTD] <> "Blue",OR([LR Allergen Statement] < (TODAY() - 14),isblank([LR Allergen Statement]))),And([GRAS Statement UTD] <> "Green",[GRAS Statement UTD] <> "Blue",OR([LR GRAS Statements] < (TODAY() - 14),isblank([LR GRAS Statements]))),And([Organic Certificate UTD] <> "Green",[Organic Certificate UTD] <> "Blue",OR([LR Organic Certificate] < (TODAY() - 14),isblank([LR Organic Certificate]))),And([Gluten Free Certificate UTD] <> "Green",[Gluten Free Certificate UTD] <> "Blue",OR([LR Gluten Free Statement] < (TODAY() - 14),isblank([LR Gluten Free Statement]))),And([NON GMO Statement UPD] <> "Green",[NON GMO Statement UPD] <> "Blue",OR([LR NON GMO Statement] < (TODAY() - 14),isblank([LR NON GMO Statement]))),And([Kosher Certificate UTD] <> "Green",[Kosher Certificate UTD] <> "Blue",OR([LR Kosher Statement] < (TODAY() - 14),isblank([LR Kosher Statement]))),And([Radiological Statement UTD] <> "Green",[Radiological Statement UTD] <>"Blue",OR([LR Radiological Statement] < (TODAY() - 14),isblank([LR Radiological Statement])))))>>
<<IF:(INDEX([Related Products],1) = [ID])>>
Product Documentation
<<EndIF>>
Product Name: <<[Product Name]>>
<<IF:(and([Product Specifications UTD] <> "Green",[Product Specifications UTD] <>"Blue",OR([LR Product Specifications] < (TODAY() - 14),isblank([LR Product Specifications]))))>>
* Product Specifications
<<EndIF>>
<<IF:(and([Allergen Statements UTD] <> "Green",[Allergen Statements UTD] <>"Blue",OR([LR Allergen Statement] < (TODAY() - 14),isblank([LR Allergen Statement]))))>>
* Allergen Statement
<<EndIF>>
<<IF:(and([GRAS Statement UTD] <> "Green",[GRAS Statement UTD] <> "Blue",OR([LR GRAS Statements] < (TODAY() - 14),isblank([LR GRAS Statements]))))>>
* GRAS Statement
<<EndIF>>
<<IF:(and([Organic Certificate UTD] <> "Green",[Organic Certificate UTD] <> "Blue",OR([LR Organic Certificate] < (TODAY() - 14),isblank([LR Organic Certificate]))))>>
* Organic Certificate
<<EndIF>>
<<IF:(and([Gluten Free Certificate UTD] <> "Green",[Gluten Free Certificate UTD] <>"Blue",OR([LR Gluten Free Statement] < (TODAY() - 14),isblank([LR Gluten Free Statement]))))>>
* Gluten Free Certificate
<<EndIF>>
<<IF:(and([NON GMO Statement UPD] <> "Green",[NON GMO Statement UPD] <>"Blue",OR([LR NON GMO Statement] < (TODAY() - 14),isblank([LR NON GMO Statement]))))>>
* NON GMO Statement
<<EndIF>>
<<IF:(and([Kosher Certificate UTD] <> "Green",[Kosher Certificate UTD] <> "Blue",OR([LR Kosher Statement] < (TODAY() - 14),isblank([LR Kosher Statement]))))>>
* Kosher Certificate
<<EndIF>>
<<IF:(and([Radiological Statement UTD] <> "Green",[Radiological Statement UTD] <>"Blue",OR([LR Radiological Statement] < (TODAY() - 14),isblank([LR Radiological Statement]))))>>
* Radiological Statement
<<EndIF>>
<<EndIF>>
<<End>>
<<EndIF>>