Anylogic – Block and unblock based on condition

Is it possible to use a simple true/false statement in a Hold block’s blocking condition to block an agent if condition is true and unblock if condition is false? If not, is there another way? I need …