[AFL] How to find the open value when open was lower than current open?

As the title says, I’m trying to get the Open value when it was lower than the open value of the current bar. I guess I’m going to have to use valuewhen() function, but I seem to not be able to figure out exactly how. Help appreciated.