if expression actions elif expression actions else actions endif
if 文を使用すると、スクリプト内の制御フローをアプリケーションの実行中にアプリケーション内の条件に対応させることができます。各 ifif には、対応する endif が必ず必要です。必要に応じて、別の選択肢の elif (省略可能) およびデフォルトですべてに適用される else 条件を含めることができます。
in my_shell if !my_option_menu->menuHistory:default_option message FAIL: bad setting for my_option_menu message Setting should be: printres my_option_menu->menuHistory:default_option else message setting ok for my_option_menu endif
関連項目: