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

if

Keyword, if ... then ... else Selector Expression

  • keyword

  • if ... then ... else

    • Examples:

        if file "piñata" contains "candy" then
      put "Children are happy!"
      else
      put "Children are disappointed."
      end if
  • (if ... then ... else) selector expression

    • Examples:

        set age to (if years >= 100 then "centuries" else "many years")
    and if
  • or if operators

    • short-circuit versions of the and and or operators