activities
latest
false
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。
UiPath logo, featuring letters U and I in white

ワークフローのアクティビティ

最終更新日時 2026年3月26日

VerifyIsLess

最初の式が 2 番目の式より小さいかどうかを検証します。

定義

名前空間: UiPath.Testing.API

アセンブリ: UiPath.Testing.Activities.API (UiPath UiPath.Testing.Activities.Api.dll)

VerifyIsLess(object, object, string)

bool VerifyIsLess(
    object firstExpression,
    object secondExpression
    string outputMessageFormat = null
)
bool VerifyIsLess(
    object firstExpression,
    object secondExpression
    string outputMessageFormat = null
)

firstExpression オブジェクト : 検証プロセスの最初の式です。

secondExpression オブジェクト : 検証プロセスの 2 番目の式です。

outputMessageFormat String : 出力メッセージの形式です。次の引数がサポートされています。

  • {LeftExpression}
  • {LeftExpressionText}
  • {RightExpression}
  • {RightExpressionText}
  • {Result}

詳しくは、「outputMessageFormatを設定する」をご覧ください。

戻り値

最初の式が 2 番目の式より小さい場合は True 、最初の式が 2 番目の式以上の場合は False です。

設定: outputMessageFormat

outputMessageFormat パラメーターは、検証操作で使用される値のプレースホルダーとして機能する、サポートされている引数を使用して設定できます。これらのプレースホルダーには、実行時にコード化されたオートメーション API を呼び出すときに定義した変数または値が自動的に入力されます。

コード化されたオートメーション API「VerifyIsLess」では、サポートされている次の引数を出力メッセージの作成時に実装できます。

  • {LeftExpression}: firstExpression パラメーターに指定した最初の式の値を表します。
  • {LeftExpressionText}: firstExpression パラメーターに挿入した最初の式のテキストを表します。
  • {RightExpression}: secondExpression パラメーターに指定した 2 番目の式の値を表します。
  • {RightExpressionText}: secondExpression パラメーターに挿入した 2 番目の式のテキストを表します。
  • {Result}: 検証結果であるコード化されたオートメーション API の戻り値を表します。

以下は、outputMessageFormat パラメーターの設定を含む、コード化されたオートメーション API「VerifyIsLess」の使用方法の例です。

// Initialize variables for the expressions to be verified
var expression1 = 4;
var expression2 = 5;

// Employ the VerifyIsLess coded automation API, with the last string parameter being the outputMessageFormat
testing.VerifyIsLess(expression1, expression2, "{LeftExpression} should be lower than {LowerLimitText}, and the result to this is {Result}");
// Initialize variables for the expressions to be verified
var expression1 = 4;
var expression2 = 5;

// Employ the VerifyIsLess coded automation API, with the last string parameter being the outputMessageFormat
testing.VerifyIsLess(expression1, expression2, "{LeftExpression} should be lower than {LowerLimitText}, and the result to this is {Result}");

この例では、中括弧内のプレースホルダーが実行時に対応する変数名とその値に置き換えられ、カスタマイズされた出力メッセージが提供されます。

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得