X-Designer 再現機能コマンド構文 - 条件節

X-Designer 再現機能コマンド構文 - 条件節


キーワード

形式

    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

関連項目: