This is the code:
if (rise.Count > fall.Count)
{
rise.Remove(rise.Last());
}
In this case im checking if the List rise is bigger then the List fall.
I want to check that only if the List rise is bigger then the List fall by 1 then do something.
For example if rise.Count is 418 and fall.Count is 417 then do something since rise is bigger then fall by one.
Or if rise.Count is 1123 and fall.Count is 1122 then do something.
All other cases don’t do anything only if it’s bigger by one.
How may i do it ?
You were almost there