CSPACE-6238: Adding conditioncheck procedure. All unit tests pass on Saf...

...ari/OS X 10.9.4