kn4tseb
Master
Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0
|
RE: storing / filtering massive items
will do, thank you..
one more thing...
how can i get a number of argv's skipping another one?
example
Code:
args=1,2,3,4,5,6,7,8,9,10
local.argv1=<argv[5]>
local.argv2= // store the rest of the argvs, from <argv[0]> to <argv[4]> and <argv[6]> to <argv[9]>
//or something like..
local.rand=<r0,9>
local.argv1=<argv[<eval <local.rand>>]>
local.argv2= // all the rest ????
would be good to have a variable that gets the position of an argv so it could be strsub'ed >.<
or somehow get random ranged values: <r1,5-7,9> or even better would be just to missread an indicated argv[n]
doing this:
Code:
args=a,b,c,d,e,f,g,h,i,j
local.argvrand=<r0,9>
local.argv1=<argv[<eval <local.argvrand>>]>
if (<local.argvrand> > 0) && (<local.argvrand> < 9)
local.argvrand21=<r0,<eval <local.argvrand>-1>>
local.argvrand22=<r<eval <local.argvrand>+1>,9>
elif (<local.argvrand> == 0)
local.argvrand21=<r1,4>
local.argvrand22=<r5,9>
elif (<local.argvrand> == 9)
local.argvrand21=<r0,4>
local.argvrand22=<r5,9>
endif
// This would work with two random argv[n]'s, but if i want to add a third or a fourth or more random argv[n]'s not equal to the already taken would be like tons of IF's
// the idea is to exclude or skip an already stored argv[n] so i can store another random argv[n]'s without reading the ones already stored :S
Thank you.
(This post was last modified: 07-15-2014 03:05 PM by kn4tseb.)
|
|
07-15-2014 10:20 AM |
|
|