End component A when a component B ends

Hi there,

new to this forum and new to PsychoPy.

I am trying to get component A to end when component B ends. Component B is jittered and therefore the exact time when it ends is unknown.

In component A, I hav selected Stop: condition, but have no idea what to write there.

Running on macOS 10.15
PsychoPy v3.2.3

EDIT:
Solved it by adding a code component and putting in:
if ComponentB.status == FINISHED:
continueRoutine = False

This ends the routine when Component B ends, which was my goal.

Hi @mijdar, you could use

componentA.status == FINISHED

Or, what you did above :slight_smile:

Tried it and it worked as well. Many thanks!