I am working on oil prices "WTI"
Is it possible to create within Gretl a dummy that takes the value 1 when WTI goes up and 0 when WTI goes down?

For example within Excel for a column A that contains WTI it is something like IF(A2>A1,1,0).

Thank you,

PG