Hi everyone, I hope your are all ok.
I need your precious help again!
The title basically says what I need. But it can get a little complex (for me..):
I need a script that checks which variable from 200 to 300 are equals to zero.
Then, it gets the 100th var(after each of those with zero value) value to erase some pictures (The value returned is the picture's Id)
I know, it's a little confusing, right?
So here goes an exemple:
1. Script checks variables 200 to 300 looking for zeroed ones.
- Returns vars 230 to 236. (They won't always be a sequence)
2. Then the script will now check the value of the 100th var after each one.
- Vars 330 to 336 will be checked in this case.
Let's say that this is how variables are set right now:
var 330 = 21
var 331 = 23
var 332 = 24
var 334 = 26
var 335 = 27
var 336 = 31
3. Finally the script should erase all pictures with the same Id as the value stored in those vars.
- Pictures 21,23, 24, 26, 27 and 31 are erased.
Obs. If the var with picture's Id returns zero, then no picture should be erased. (Of course no picture can use the 0 as id, but I want to avoid error messages and math conflicts in the script)
Logic suggestions are always welcome too!
Thanks!
I need your precious help again!
The title basically says what I need. But it can get a little complex (for me..):
I need a script that checks which variable from 200 to 300 are equals to zero.
Then, it gets the 100th var(after each of those with zero value) value to erase some pictures (The value returned is the picture's Id)
I know, it's a little confusing, right?
So here goes an exemple:
1. Script checks variables 200 to 300 looking for zeroed ones.
- Returns vars 230 to 236. (They won't always be a sequence)
2. Then the script will now check the value of the 100th var after each one.
- Vars 330 to 336 will be checked in this case.
Let's say that this is how variables are set right now:
var 330 = 21
var 331 = 23
var 332 = 24
var 334 = 26
var 335 = 27
var 336 = 31
3. Finally the script should erase all pictures with the same Id as the value stored in those vars.
- Pictures 21,23, 24, 26, 27 and 31 are erased.
Obs. If the var with picture's Id returns zero, then no picture should be erased. (Of course no picture can use the 0 as id, but I want to avoid error messages and math conflicts in the script)
Logic suggestions are always welcome too!
Thanks!