Hi! I have a small problem. I have next keyword:
Check Document PKSPT status in Mongo
[Arguments] ${DocID} ${Status}
&{FILLTER} Create Dictionary metadata.documentId=${DocId}
${RESULTS} Find ${MONGODB_CONNECT_STRING} ${FILLTER}
${StatusList} Create List ${Status}
${String}= Evaluate pprint.pformat(${RESULTS}) #Making a string to use regexp
${String}= Remove String ${String} \n
${Search}= Get Regexp Matches ${String} 'sendDocumentResult':.*?'succesful': (?P<name>.+?)} name
Should Be Equal ${Search} ${StatusList}
Keyword is working perfectly if sendDocumentResult is not empty. But sometimes I need to check if it is empty. Problem if I need ${Status} is empty I got an error != [’ ']
Example: Check Document PKSPT status in Mongo id1234 ${Empty}
Is there any way to solve this case without new keyword?