I'm not sure how to formulate this question but the goal is to compare one closing price to the prior closing price using Python

I'm using Forex data and can see the log generate the sequence of closing prices with the following OnData() code:

fxClose = data['EURUSD'].Close
self.Log(fxClose)

I can't figure out the procedure to compare one closing price to a prior one as in:

if CurrentClose > PriorClose

I know this is a rudimentary question but I can't seem to locate any examples that show how this can be done.