0

I have this query in info.plist of extension:

SUBQUERY(extensionItems, $extensionItem, SUBQUERY($extensionItem.attachments, $attachment, ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.plain-text").@count >= 1).@count >= 1

Here count >=1 means more than 1 file can be import using extension. I want something like count<=10 but < is showing error.

How < can be implemented here?

rastasheep
  • 10,416
  • 3
  • 27
  • 37
Arun Gupta
  • 2,628
  • 1
  • 20
  • 37

1 Answers1

2

Got the answer myself.

since this in xml tags for < we have symbolise it with < So say if i to limit the max image count to 5 i will perfrom like this:

SUBQUERY(extensionItems, $extensionItem,
 SUBQUERY($extensionItem.attachments, $attachment, ANY 
 $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO 
 "public.plain-text").@count &lt;= 5).@count >= 1
Arun Gupta
  • 2,628
  • 1
  • 20
  • 37