Expresses 'as soon as', 'depending on', or 'depending on the situation'.
Long explanation:
The ~次第 grammar point is used to express that something will happen as soon as a certain condition is met or that an action or situation depends on another action, decision, or situation. The formation differs based on whether it is used with a verb or noun.