LOTUSSCRIPT 言語
アンパサンド (&) 演算子構文expr1 & expr2 構成要素expr1、expr2
プラス (+) 演算子構文expr1 + expr2 構成要素expr1、expr2
Print 100 & "200"
' Output is 100200, because & is always ' a concatenation operator
プラス演算子の場合、次のようになります。
Print 100 + "200"
' Output is 300, because + was interpreted ' as addition operator
Print "100" + "200"
' Output is 100200, because + was interpreted ' as concatenation operator
関連項目