Deluge 文>その他の機能>コメントの追加(Add Comment)
解説
Deluge スクリプトにコメントを追加すると、コード内容がより分かりやすくなります。
コメント行には、頭に # をつけます。
構文
使用例① - フリー スクリプトを利用する場合
下記のサンプルは、コメントタグによって、コードを詳細に説明しています。
Age ( type = number ) on submit { # checks if the age specified is less that 20 or greater than 100# displays the specified alert message if validation fails and cancels form submissioncancel submit; if (input.Age < 20) && (input.Age >100) { # displays the specified alert message if validation fails and cancels form submission alert "age should be between 20 to 100"; cancel submit; } }
|
使用例② - スクリプトビルダーを利用する場合
スクリプトビルダーにコメント行を追加するには、下図のように、Add comment タスクを追加します。
Edit をクリックして、コメントテキストを入力します。