メインコンテンツまでスキップ
バージョン:25.2

is in, is not in, isn't in

  • operator

  • a is in b -- is equivalent to: b contains a

  • Tests whether a string is contained in another string, whether a value is one of the items in a list of values, or whether a list of values is a sublist in another list.

  • Examples: +

     put "love" is in "clover" —> True
     put 13 isn't in [12,44,132,66] —> True
     put [6,8] is in [2,4,6,8,99] —> True
     put [6,8] is in [2,4,6,7,8,99] —> False
  • Related: contains , within