FireDAC Components for REST

Build 23.0.8804


The api:equals keyword compares the value of an attribute to a reference value. Unlike api:check, the api:equals keyword will throw an exception if the specified item does not contain the specified attribute. If the specified attribute exists and its value matches, then the comparison will succeed.

Note: Both api:equals and api:check expect the name of the attribute whose value will be compared with a given value. If you need to compare two values, you can use api:select instead. For example:

<api:select value="[company_name]">
  <api:case value="CompanyA">
    <img src="" />
  <api:case value="CompanyB">
    <img src="" />
    <img src=""/>


  • item: The item in which to compare the attribute. Specifying an item is not required. If no item is specified, the default output item is used instead.
  • attr: The name of the attribute to compare.
  • case: Whether to use case-sensitive or case-insensitive comparison. This defaults to case-sensitive comparison; to use case-insensitive comparison, set the case parameter to "ignore".
  • value: The value to compare the attribute with.
  • action: The action to perform if equality is met. Allowed values: break, continue.

Control Attributes



Like other conditional keywords, the body of api:equals may also contain an api:else keyword, which will be executed if the values do not match. The following lists all files except .err files:

<api:call op="fileListDir">
  <api:equals attr="file:extension" value=".err">

See Also

  • api:select: Choose between more than one alternative.
  • api:notequals: Create a block that is executed when equality is not met.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8804