If文 ある条件が満たされたときのみ一定の処理をする、という命令の書き方。 if (condition) { VBAでは statement(s) If condition Then } statement(s) if (condition) { End If statement(s) } else { If condition Then statement(s) } Else statement(s) if (condition) { End If statement(s) } else if (condition){ If condition Then statement(s) } else { Else. If condition Then statement(s) } Else if (n. Images==0) statement(s) print("No images are open"); End If else だった。 print("The image title is " + get. Title); ({}がないことに注意。{ }内に書くべき命令が一行ならこういう書き方もで きる。; にも注意。get. Title()はアクティブな画像のタイトルを取得する既定 関数。) 41 例を手入力して実行してみること。いろいろ変えてみる。
描画関係の関数-位置関係 draw. Oval(x, y, w, h); draw. Rect(x, y, w, h); Foreground color (x, y) h h w Background color draw. String("TEXT", x, y); TEXT (x, y) fill. Rect(x, y, w, h); w set. Justification("right"); draw. String("TEXT", x, y); TEXT (x, y) 65