⛄Snowberb⛄ – 11-14 Jan 10
Having
data.length === 17
and limit === 10
, how can I dynamically obtain the result of 3
? As data.length
and limit
can change9 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
wdym?
I just don't know how I can program that if:
use
&&
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
please read again the question, that's not dynamically thats hardcoding
yes there's logic behind, like obviosuly I dont need it hardcoded, both the length of
data
and limit
can change, without me knowing what their value will beUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
lol I thought I had said it on the question, apologies. So if the limit is 10 and the data length is 17, 3 comes out of doing 10 - 7, as there's 10 items listed on each page
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1062328522200330240