Adobe 23101335 - Photoshop - PC Manual page 19

Scripting guide
Hide thumbs Also See for 23101335 - Photoshop - PC:
Table of Contents

Advertisement

A more complicated type of control structure includes conditional logic, so that it loops while
or until some condition is true or false.
AS
set flag to false
repeat until flag = true
end repeat
set flag to false
repeat while flag = false
end repeat
VB
flag = False
Do While flag = False
If (retVal = vbCancel) Then
flag = True
End If
Loop
flag = False
Do Until flag = True
Loop
Photoshop 7.0 Scripting Guide
set flag to button returned of (display dialog "Quit?" ¬
buttons {"Yes", "No"}) = "Yes"
set flag to button returned of (display dialog "Later?" ¬
buttons {"Yes", "No"}) = "No"
retVal = MsgBox("Quit?", vbOKCancel)
retVal = MsgBox("Quit?", vbOKCancel)
If (retVal = vbOK) Then
flag = True
End If
Scripting basics
Commands and methods
2
19

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop 7.0

Table of Contents