dbc cmp

dbc cmp cursor  

The dbc cmp method compares two cursors for equality. Two cursors are equal if and only if they are positioned on the same item in the same database.

The dbc cmp command returns 0 if the cursors are equal, and a non-zero value if they are not equal.