-
if/else expression depending on whether a value is growing or shrinking
is it possible to use whether a value is going up or down to control an if/else expression?
for instance, I have a slider and i want to make it where if the slider is moving up/positive then use expression x otherwise use expression y.
ifthisistrue = Slider is moving up;thishappens = x;
otherwisethishappens = y;
if (ifthisistrue)
{
thishappens;
}else
{
otherwisethishappens;
}