HOME > テクニカルサポート > 製品 一覧 > SigmaPlot > ユーザーガイド > トランスフォーム関数一覧
ヒューリンクステクニカルサポート
皆様からのご質問のうち、よくある質問を掲載しました。
更新日: 14/05/08

if...then...else

関数 if...then...else は、指定した条件に応じて、2つの一連の計算のうちどちらか一方を実行します。

 

構文

 

if...then...else 構文は、if condition に続いて、真の場合に実行する then 以下のトランスフォーム方程式の命令文 (複数の文でも可) 、そして偽の場合に実行する else 命令文 (複数の文でも可) を記述します。if...then...else 構文があると、その命令文の中にある全ての関数は他のトランスフォームとは別に評価されます。

Note: if, then とすべての条件演算子、変数および数値はスペースで区切る必要があります。

 

if...then...else 構文では、以下のことが可能です:

Note: 上記は、if...else 文内でのみ可能です。if...then...else 文内で変数名を再定義することはできません。

 

 

if...then...else

The if...then...else function proceeds along one of two possible series of calculations based on a specified condition.

Syntax

To use the if...then...else construct, follow the if condition then statement by one or more transform equation statements, then specify the else statement(s). When an if...then...else statement is encountered, all functions within the statement are evaluated separately from the rest of the transform.

Note: You must separate if, then, and all condition statement operators, variables, and values with spaces.

Inside if...then...else constructs, you can:

Note that these conditions are allowed only within if...else statements. You cannot redefine variable names within an if...then...else construct.

Example

sets x equal to column 3 if i is less than 1 and j is greater than 1; otherwise, x is equal to column 4.

 

前のページにもどる