The simplest way would be to use a
multisource. Create a multisource entity, give it a name and then have something target it. Then, go to the trigger you want to turn on/off and set the Master to the name of the multisource.
Example:
func_doorname: door1
trigger_multipletarget: door1
master: door1_lock
multisourcename: door1_lock
func_buttontarget: door1_lock
In the above example, the trigger_multiple which opens the door will NOT work until the func_button has been pushed. If the func_button is set to toggle, or if you trigger the multisource again, the trigger_multiple will be disabled again and the door would be locked.