Parsing
tryparsenum
Attempt a num parse. Writes the result and a success flag.
Syntax
tryparsenum(<source>, <numSlot>, <boolSlot>);
How she behaves
- Both destination variables must already exist (often created with new).
- On success, the num slot is filled and the boolean becomes true.
- On failure, the boolean is false and you can ask again.
Example
tryparsenum(readln, userValue, numberParsed);