CSPACE-6237: Adding conditioncheck procedure. All unit tests pass