api:notequals
Version 23.0.9145
Version 23.0.9145
api:notequals
Use the api:notequals
keyword to verify that the attribute does not match the specified value. It has a similar behavior to the api:equals keyword.
Parameters
- item: The item in which to compare the attribute. If you do specify an item, the default output item is used.
- attr: The name of the attribute to compare.
- value: The reference value to compare the attribute with.
- action: The action to perform if the expression evaluates to
true
. Allowed values:break
,continue
.
Control Attributes
None
Example
List all files except .err files:
<api:call op="fileListDir">
<api:notequals attr="file:extension" value=".err">
<api:push/>
</api:notequals>
</api:call>
See Also
- api:equals: Check for equality.
- api:else: Create a block which is executed if the condition is not satisfied.