Quote:
Originally Posted by ownedbycats
I have "omnibus" in the admintags column.
|
Then this should work, again assuming that the fractional part is always 2 digits.
Code:
program:
if '^omnibus$' inlist_field '#admintags' then
series_start = floor($series_index);
fraction = fractional_part($series_index);
if fraction ==# 0 then
result = series_start
else
series_end = floor(fraction*100);
if series_end >=# 0 then
result = series_start & '-' & series_end
fi
fi
else
result = $series_index
fi;
result