From b6764fe63788ac0d319478ac191714c0e3a27920 Mon Sep 17 00:00:00 2001 From: routersys Date: Fri, 3 Jul 2026 19:43:11 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B5=E3=82=A4=E3=83=88=E3=81=ABis=20not?= =?UTF-8?q?=E6=A7=8B=E6=96=87=E3=81=AE=E8=AA=AC=E6=98=8E=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/lua-basics.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/lua-basics.html b/docs/lua-basics.html index 7fb0730..e73073f 100644 --- a/docs/lua-basics.html +++ b/docs/lua-basics.html @@ -95,6 +95,16 @@ x, y = y, x local v = amp ~= 0 and amp or 50 obj.x = obj.x + v +

is not による不等号

+ +

+標準の Lua には無い is not の記法を追加しています。a is not b は不等号として扱い、a ~= b と同じ意味になります。スクリプトは実行前に変換するため、すべてのエンジンで同じように動きます。文字列とコメントの内側は変換しません。 +

+ +
if frame is not 0 then
+    obj.x = 100
+end
+

条件分岐

if obj.t < 0.5 then