0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

コレクション変数に値があるかを確認する

Last updated at Posted at 2024-06-05

Summer 24 で変わった

image.png

以前の方法

numは数値型の変数、Stringsはテキスト型のコレクション変数
ポイントは演算子を割り当てで次の数と一致するにすること

コレクション変数がnullのときにはnumは0になっている

image.png

image.png

割り当ての前にコレクション変数に値を追加した場合

image.png

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?