Thanks for replying.
Here are two of the entries for the example. The env,per,pri,com,ind,res, saf,myr, and ewa are the different categories that need to be checked. The header and statement is what gets outputted. I just can't wrap my head around how to begin coding the logic for what I'm trying to do. If someone selects env and ind, only the entries that have both of those included should show up, with it being ok if the other categories were filled. I'm not sure I'm making sense.
In the bottom example. If the user selected ENV and IND, The first entry would show up because it has both, but not the second entry because it only has ENV.
{
"env":"ENV",
"per":"",
"pri":"",
"com":"COM",
"ind":"IND",
"res":"RES",
"saf":"",
"myr":"",
"ewa":"",
"Header":"Environmental Compliance ",
"statement":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sollicitudin urna ante, id placerat mauris sagittis sed. Donec scelerisque dignissim viverra. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque vita"
},
{
"env":"ENV",
"per":"PER",
"pri":"PRI",
"com":"COM",
"ind":"",
"res":"RES",
"saf":"SAF",
"myr":"",
"ewa":"",
"Header":"State of the art equipment ",
"statement":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sollicitudin urna ante, id placerat mauris sagittis sed. Donec scelerisque dignissim viverra. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque vita "
},
Thanks again.