#A little dumb but...

1 messages · Page 1 of 1 (latest)

limber shoal
#

How do I make the a max amount of things that are in the queue, if bigger than the last value would be deleted.

limber shoal
#

like a constant check if the the amount in the queue is bigger than max value

sharp jackal
#

you'd either have to check it each time a value is added (the better option) or check every x whether it is bigger (the worse option)

sharp jackal
#

exactly what i said

#

every time you add a value, also do the check

limber shoal
#

okay i realized

#

i got it

#

but what if like i need so the value shifts or disappears over time

sharp jackal
#

all stuff you'll need to handle

limber shoal
#

something like this

FASTBOARD

Value
Value #2
limber shoal
sharp jackal
#

yep thats something you'll have to handle in the code