[Ttssh2-commit] [6346] チケット #35277 実行コマンドの無い一行形式のifをエラーにする

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2016年 3月 13日 (日) 20:06:08 JST


Revision: 6346
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6346
Author:   yutakapon
Date:     2016-03-13 20:06:08 +0900 (Sun, 13 Mar 2016)
Log Message:
-----------
チケット #35277 実行コマンドの無い一行形式のifをエラーにする

Tera Term 4.90で、thenなしifを文法エラーとするように仕様変更したことに関して、
注意事項とサンプルコードを追加した。

Ticket Links:
------------
    http://sourceforge.jp/projects/ttssh2/tracker/detail/35277

Modified Paths:
--------------
    trunk/doc/en/html/macro/command/ifthenelseif.html
    trunk/doc/ja/html/macro/command/ifthenelseif.html

-------------- next part --------------
Modified: trunk/doc/en/html/macro/command/ifthenelseif.html
===================================================================
--- trunk/doc/en/html/macro/command/ifthenelseif.html	2016-03-11 14:14:01 UTC (rev 6345)
+++ trunk/doc/en/html/macro/command/ifthenelseif.html	2016-03-13 11:06:08 UTC (rev 6346)
@@ -96,6 +96,26 @@
 endif
 </pre>
 
+
+<h3>*) NOTICE</h3>
+
+<em>(version 4.90 or later)</em><br>
+By using Format 2(if - endif), the synax error occurs when then is not described.
+
+<pre class="macro-example">
+code = 100
+if code != 100
+	messagebox 'The code value is not 100.' 'error'
+	goto error
+else
+	messagebox 'The code value is 100.' 'OK'
+endif
+
+:error
+end
+</pre>
+
+
 <h2>Reference</h2>
 
 <a href="../syntax/expressions.html">Expressions and operators</a><br>

Modified: trunk/doc/ja/html/macro/command/ifthenelseif.html
===================================================================
--- trunk/doc/ja/html/macro/command/ifthenelseif.html	2016-03-11 14:14:01 UTC (rev 6345)
+++ trunk/doc/ja/html/macro/command/ifthenelseif.html	2016-03-13 11:06:08 UTC (rev 6346)
@@ -97,6 +97,26 @@
 </pre>
 
 
+
+<h3>*) \x92\x8D\x88ӎ\x96\x8D\x80</h3>
+
+<em>(\x83o\x81[\x83W\x83\x87\x83\x93 4.90 \x88ȍ~)</em><br>
+\x8F\x91\x8E\xAE2(if - endif)\x82ɂ\xA8\x82\xA2\x82āAthen\x82̋L\x8Fq\x82Ȃ\xB5\x82͕\xB6\x96@\x83G\x83\x89\x81[\x82ƂȂ\xE9\x81B
+
+<pre class="macro-example">
+code = 100
+if code != 100
+	messagebox 'The code value is not 100.' 'error'
+	goto error
+else
+	messagebox 'The code value is 100.' 'OK'
+endif
+
+:error
+end
+</pre>
+
+
 <h2>\x8EQ\x8F\xC6</h2>
 
 <a href="../syntax/expressions.html">\x8E\xAE\x82Ɖ\x89\x8EZ\x8Eq</a><br>



Ttssh2-commit メーリングリストの案内
Back to archive index