Home > Contents > Index > 
CDM.FITTOINTERVAL
Slots a raw number into a calculated interval.
Syntax
<CDM.FITTOINTERVALRAWNUMBER="number"TYPE="some type"INTERVAL="intervalvar"/>Description
This tag logs a raw number, such as age or income, as an interval (range). The raw number is converted into a range by the tag, which then stores the calculated value in a string.
Parameters
RAWNUMBER (required)- Input parameter. A string numeric value to fit into an interval.
 
TYPE (required)- Input parameter. Type of interval to which to fit the raw number. There are two default types defined in the
 commercedata.inifile:ageandincome. There can also be user-defined types. Each type has two variants:typelowestandtypeinterval.
INTERVAL (required)- Input and output parameter. As input, name of variable to hold a calculated interval on output.
 
Example
Given default values of
agelowest=5andageinterval=10, the following tag returns the value"5-14"in the variablerange.<CDM.FITTOINTERVALRAWNUMBER="13"TYPE="age"INTERVAL="range"/>
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.