using gathered facts to gather other facts

Hi,

is it possible to gather some custom facts on hosts, and after that to use those gathered facts to gather other facts.

For example, first I need to gather some facts about some host, after that, I would like to run another script for gathering facts, but input argument for this other script should be those facts which I gathered in step before…
Thanks a lot…