Chapter/Index: Introduction | A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
K |
L |
M |
N |
O |
P |
Q |
R |
S |
T |
U |
V |
W |
X |
Y |
Z |
Appendix
Different Output Results due to Ordering of Actions with "while statements"
Table 1009. Different output results due to ordering of actions with "while statements".
Case A |
Case B |
◆ Script file: Link
◆ Script function: Name the opened images in order of "the front most, second front most and so on"
◆ i is initialized in Line 11; however, the i for the name of each image is determined by Line 16.
◆ Re-naming in order: "Image 0" is the most front image, "Image 1" is the second most front image, and so on... , for instance, the images will be re-named as "Image 0 ...", "Image 1" and "Image 2" if three images are opened in total
◆ FindNextImage() in Line 15 returns each image. If the last image is found, the returned image will be
invalid and then the script execution ends.
|
◆ Script file: Link
◆ Re-naming all the opened images, starting with "Image 0
◆ Comparing with the script on the left, this script re-names all the opened images with the same i (i = 0), initialized in Line 13 within the while{} statement. |
|