Represents the selection criteria for a Query or Scan operation:
For a Query operation, Condition is used for specifying the KeyConditions to use when querying a table or an index. For KeyConditions , the following comparison operators are supported:
EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN
Condition is also used in a QueryFilter , which evaluates the query results and returns only the desired values.
For a Scan operation, Condition is used in a ScanFilter , which evalues the scan results and returns only the desired values.

C# |
public class Condition

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | Condition()()()() | Initializes a new instance of the Condition class |
![]() | AttributeValueList |
One or more values to evaluate against the supplied attribute. The number of values in the list depends on the ComparisonOperator
being used. For type Number, value comparisons are numeric. String value comparisons for greater than, equals, or less than are based on
ASCII character code values. For example, a is greater than A, and aa is greater than B. For a list of code
values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters. For
Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values, for example when evaluating query
expressions. For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer
Guide.
|
![]() | ComparisonOperator |
A comparator for evaluating attributes. For example, equals, greater than, less than, etc. The following comparison operators are available:
EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN The following are descriptions
of each comparison operator.
Constraints: |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WithAttributeValueList(array<AttributeValue>[]()[][]) | Obsolete.
Adds elements to the AttributeValueList collection
|
![]() | WithAttributeValueList(IEnumerable<(Of <<'(AttributeValue>)>>)) | Obsolete.
Adds elements to the AttributeValueList collection
|
![]() | WithComparisonOperator(String) | Obsolete.
Sets the ComparisonOperator property
|

Object | |
![]() | Condition |