arc:notnull

Version 23.4.8839


arc:notnull

Version 23.4.8839


The arc:notnull keyword checks that an attribute has a value in the specified item. The arc:exists keyword is a synonym for arc:notnull.

Parameters

  • item: The item to check. If not specified, the default output item is used.
  • attr: The name of the attribute to check.
  • action: The action to perform if the expression evaluates to true. Allowed values: break, continue.

Control Attributes

None

Example

Define missing title attributes.

<arc:call op="fileListDir" output="out">
  <arc:notnull attr="filename">
      <arc:set attr="[title]" value="[filename]"/>
    <arc:else>
      <arc:set attr="[title]" value="Unnamed file"/>
    </arc:else>
  </arc:notnull> 
  <arc:push title="[title]">
  [out.file:*]
  </arc:push>
</arc:call>

See Also

  • arc:else: Create a block which is executed if the condition is not satisfied.