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