12-07-2022, 06:45 AM
Note: This also has a couple of helper functions with it, that someone might find useful.
FUNCTION IsNum tells you if a string is a valid number, or not.
FUNCTION ParseValues takes a CSV string of numbers and breaks them down into an array of numbers for you. ("1,2,3,4,5,6,7,8,9" would become a 9 element array containing the values for 1, 2, 3, and so on.) Also works with numbers inside parentheses, such as "_RGB(123, 456, 789)", which would return a 3-element array holding 123, 456, and 789 as the elements.
FUNCTION IsNum tells you if a string is a valid number, or not.
FUNCTION ParseValues takes a CSV string of numbers and breaks them down into an array of numbers for you. ("1,2,3,4,5,6,7,8,9" would become a 9 element array containing the values for 1, 2, 3, and so on.) Also works with numbers inside parentheses, such as "_RGB(123, 456, 789)", which would return a 3-element array holding 123, 456, and 789 as the elements.