alias hdec {
var %0 = $($ $+ $0,2), %ifmatchbug = $ifmatch
$+(!,$iif(!$show,.),hinc) $iif(%0 isnum,$($!1- $+ $calc($0 -1),2) - $+ %0,$1- -1)
if (%ifmatchbug) { }
}
I can't test it right now, but it should work.. The $ifmatch part is some workaround to deal with the well known (I suppose) $ifmatch bug (which is very old already, it should be fixed too ), since it uses $iif().