INPUT /  OUTPUT /  LANGUAGE





num tag

Transient logic tag

Converts text into a number.

Sample usage

Fields

Primary field

Vector field

One or more values to convert, usually text.

Secondary fields

None.

Behaviour

Generates the number at the start of each value in the primary field.

Notes

Text typed into an input box is always text, even if it looks like a number. Convert it with num before calculating or comparing with it. Test the result with <invalid ...> to check the user actually typed a number.

Example

<a:input {0}> + <b:input {0}> = <result:span {0}> <button {Add} onClick=<result | add <num a>, <num b>>>

See also