You need to use $calc if you're doing any calculations (such as %host.type - 1).