Stopping a screen at X point

Anyone know of a way to stop a screen run at a certain point during a backtest? For example when equity hits a certain number or percent. So, rather than run the full period the backtest stops when a certain goal is met?