How to track the change of a variable value?

Hi, I've made a time system based on step counts, every 5 steps on the big map would cause date +1.
X = Step Counts
$gameVariables.setValue(Y, $gameVariables.value(X) / 5);
Y stands for date.

Meanwhile, I want to make a camp event triggers each time when the date changes
How can I do this?
Before those commands,
Control Variable -> Old Date = Y
(do all of that stuff)
Conditional Branch -> Y > Old Date
- call the camp event

Original thread: https://forums.rpgmakerweb.com/threads/how-to-track-the-change-of-a-variable-value.173109/