256-Confirm

ページ名:256-Confirm

Confirm (Function)

Format

confirm ( prompt )
confirm ( prompt, boolean_expression)

returns boolean_expression

説明

この関数は、「はい」および「いいえ」ボタンのあるメッセージボックスを表示します。 ユーザーが「はい」を選択すると真の値が返され、「いいえ」を選択すると偽が返されます。 デフォルトのボタンを設定するには、2番目の引数をtrueまたはfalseに設定します。

Example

ans = confirm("Do you wish to continue")
if ans then
print "continue on"
else
print "end everything"
end
end if

See Also

History

0.9.9.42 New to Version

シェアボタン: このページをSNSに投稿するのに便利です。

コメント

返信元返信をやめる

※ 悪質なユーザーの書き込みは制限します。

最新を表示する

NG表示方式

NGID一覧