>One Problem less, but I'm still having trouble with the simple "^!If
>^%ImgHeight% < ^%IMGH% goto origsize else size". It does not really
>the job right, selecting out of the blue the wrong label, certain
>images are left in their original size others not. I can't make any
>sense out of it.
>Could it be that it has problems to compare a value which was choosen
>in a array with the real img size ?
dunno. probably not. most likely not.
Instead, probably appears to me U are not "sequencing" up the array properly, one at a time.
I haven't yet seen in your code
in fashion like above, "walks up" does one at a time so to speak.
Look at the array demos in the SampleCode library, perhaps mimic them, experiment a bit, write a small one similarly.
I took quick look at your code and the set nnn does not appear right to me. Usually something that U Inc is usually a number, not what it (at least how it appears to me so far) is that U currently in your code.
The above ^%ImageFullName%; isn't that a name, not a number???
What are U using Inc on there?
I just took 2nd look; appears is no purpose for %nnn% I didn't see it hooked up or elsewise I didn't see it doing anything and my motto: "if it not doing anything then don't have it in there at all." correct me if I'm wrong I not yet fully familiarize what your overall clip does nor not familiarize with all of each section yet either.
If that above is not Inc a number then that could be the source of your problem (it may not be your If statement at all).
I suggest U check and correct the above then run the clip, see if problem is fixed.
Regards your If line:
in the code (your clip) U sent like following
^!If ^%ImgHeight% > ^%IMGH% size ELSE origsize
(If line is just prior to your size label)
Now, if a condition is not met it will proceed onward with the next line of code which is your size label section of code.
^!If ^%ImgHeight% < ^%IMGH% origsize
So, the above line I would use as a replacement for the If line that is further above. (with this If line, if the 1st variable is not smaller than the 2nd variable, it will go to :size because :size is the next line of code)
as I said, a quick look so far. I can look some more perhaps tomorrow or for sure by the next day if the above 2 (now 3) ideas don't fix it up.
At this point, I'm betting on the sequence or "walk up" the array thing, issue as the source your problem.
good luck. Regards. Alan.