cleanup (align a bit with m4)
cleanup (align a bit with m4)

early exit to solve random crashes

implemented calc.ifthenelse on values.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb