Hi Tranquil,
Do you mind supplying a bit more information on your question and possibly some screenshots?
If by resources you mean assets, with some assets containing a specific signal, then it may not be necessary to write any script. If this is indeed the case, Asset Groups could possibly be utilized to scale the creation of a condition if the signal(s) of interest exist.