This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.
Este artigo foi traduzido automaticamente.
这篇文章已经过机器翻译.放弃
Translation failed!
割り当て
代入文は式を評価し、結果の値を変数に代入します。
variable = expression
前述のように、任意の型の値を任意の変数に割り当てることができるので、次のことが許可されます。
local v1 = "a string literal"
v1 = 10
代入文は、実際にフォームを使用して、複数の変数を設定することができます
variable1, variable2, … = expression1, expression2, …
式よりも多くの変数がある場合、余分な変数には nil が割り当てられます。変数よりも多くの式がある場合、余分な式値は破棄されます。式はすべて代入の前に評価されるため、これを使用して 2 つの変数の値を簡潔に交換できます。
v1, v2 = v2, v1
は次と等価です。
tmp = v1 v2 = v1 v1 = tmp
共有
共有
この記事の概要
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.