<?xml version="1.0" encoding="utf-8"?>
<KScriptSetting>
  <Name>Query</Name>
  <Description>string based query syntax to find records from kooboo site repository or database. It has the format of: [FieldName] [Comparer] [Value]
  </Description>
  <Example> <![CDATA[ 
        <script engine="kscript">

        var table = k.database.getTable("tablename");
  
        // find items with field "name" value of "matchedvalue".
        var item = table.findAll("name=='matchedvalue'");

        // find item with field "number" bigger than or equal to 123.
        var item = table.findAll("number>=123");
        
        // find item with both conditions.
        var item = table.findAll("number>=123&&name=='matchedvalue'");

        // find item with field "name" value contains "matchedvalue".
        var item = table.findAll("name contains 'matchedvalue'");

        // find item with field "name" value startwith "matchedvalue".
        var item = table.findAll("name startwith 'matchedvalue'");

        /// syntax of condition: fieldname operator value;
        // all available operators: ==,  >=,  >,  <,  <=, contains, startwith
        
        
        // for k.site.textContents, you may use the condition of "folder", "contenttype" and "category".
        var bloglist = k.site.textContents.findAll("folder==blog");  

        </script>
		]]>
  
  </Example> 

  <Props>
    <Property>
      <Name>FieldName</Name>
      <Description>The Field name</Description>
      <Type>string</Type>
    </Property>

    <Property>
      <Name>Comparer</Name>
      <Description>
      <![CDATA[   One of:=, ==,  >=,  >,  <,  <=, contains, startwith	]]>
      </Description>
      <Type>string</Type>
    </Property>
      
    <Property>
      <Name>Value</Name>
      <Description>A string value, you may use  single quote inside double quote.</Description>
      <Type>string</Type>
    </Property>

    <Property>
      <Name>
        <![CDATA[ && ]]>
      </Name>
      <Description>To combine multiple search conditions</Description>
      <Type>string</Type>
    </Property>

    <Property>
      <Name>
       folder,contenttype, category
      </Name>
      <Description>Special keywords under k.site.textContents</Description>
      <Type>string</Type>
    </Property>
    
  </Props>
  <Methods>
 
  </Methods>
</KScriptSetting>