Assignment Operators

ページ名:Assignment Operators

Assignment Operators

Variable = Expression Direct assignment.
Variable += Expression Assignment with addition.

This is a synonymous for Variable = Variable + Expression

Variable -= Expression Assignment with substraction.

This is a synonymous for Variable = Variable - Expression

Variable *= Expression Assignment with multiplication.

This is a synonymous for Variable = Variable * Expression

Variable /= Expression Assignment with division.

This is a synonymous for Variable = Variable / Expression

Variable \= Expression Assignment with integer division.

This is a synonymous for Variable = Variable \ Expression

Variable %= Expression Assignment with integer modulo.

This is a synonymous for Variable = Variable % Expression

Variable &= Expression Assignment with string concatenation.

This is a synonymous for Variable = Variable & Expression

Variable &/= Expression Assignment with path concatenation.

This is a synonymous for Variable = Variable &/ Expression

See also

 

 

 

 

 

シェアボタン: このページをSNSに投稿するのに便利です。

コメント

返信元返信をやめる

※ 悪質なユーザーの書き込みは制限します。

最新を表示する

NG表示方式

NGID一覧