Hi ! Isn't that supposed to work ? if cmmc_db:getProcState(Key,Name) /= State -> instead I have to write ProcState = cmmc_db:getProcState(Key,Name), if ProcState /= State -> regards Dietmar