Enclosure plug-in problem

Hi guys,
I have two questions (sorry if silly):

Someone know if it is possible to make action on an raspberry output pin based on an another output pin value?

It is possible to make action on an output based on a logic level of an input (ex: fixed ‘0’) instead than an edge?

Thanks in advance,
Ale