FromTo

Description:

script:fromto(from,to)

Set a range between the "from" value and the "to" value.

It will return an "interval" that can be used in answer control, like "0:100" restricting the user to enter a value between 0 and 100. Typically one or both parameters are references to other numeric questions where they previously have entered a value.

Parameters:

This function has exactly 2 parameters

Example:

script:fromto(0,\Q2.a.1)

Will return a interval from "0" to the answer from "Q2.a.1" (this needs to be a numeric question). If the answer to "Q2.a.1" is 230, it will return "0:230"