If the pre-expression value isn’t animated, you can use a little trick where you use the opacity expression to stuff the pre-expression value into negative times, like this:
if (time >= 0) value*100 else value
Then you pick up that value like this:
transform.opacity.valueAtTime(-1)
If the pre-expression value is animated, you can still do it with something like this:
if (time >= 0) value*100 else valueAtTime(-time)
and pick up the value like this:
transform.opacity.valueAtTime(-time)
But you have to do a little extra work to pick up the pre-expression value at time = 0, if you need it. Anyway, that should give you the idea.
Dan