You can use the “seconds since 1970” block to create a unique number or text string. Or you can use Firebase sign-in to create a unique UserID. That’s what I’d recommend.
Thank you for your respond. i am not sure block “Seconds since 1970” relevant for my solution.
i never use it before and from what i understand it related with timestamp?
i only want to create set of number for example from 100-200. it need to follow standard formation not a random number. And most important is not duplicate even though it has multiple users who using the app. that why i though it need to compare at DB either localdb or airtable so the user will get free available formation number from the list.
how to bypass when it reach duplicate number? now i try on local db later i will create at airtable.
in local db i already have record 1,2. total number i set to 10.
if list variable i set to 3 then should be fine but imagine i have multiple user who create a number the sequence probably 1,3,5 then i believed it should by pass and get available number.
Do exactly what you are doing in the else part of the block. [Change app variable list] by 1 to get the next number and check again.
Better to reorder your block to check only for none duplicates for example to go into a loop and use the [break] block if the number is not a duplicate.
first method: how to get next number and check again?
second method: if possible to get sample from block because i never use looping or break block before.
It will check for the next available number in a given range and it will also check if no more numbers are available.
You can check for next available numbers many times and once you decide to reserve the number it will be added to the list of reserved number so next time you check for available numbers the number added will not show as an available number.