Board Thread:Support Requests - Getting Technical/@comment-961279-20141126042114

I have been poking around the StringFunctions extension and I have figured out how to extract the portions of a string that I want. What I need help with is converting text to a number. For example, if I extract "042" from the string, how do I convert that into a number so I can perform some calculations on it?

Next, I seem to remember that there is a way to make entries in a switch accept a previously-defined value. For example, this switch defines a value for each item:

What is the method for making "Eating Dinner" inherit the value given to "Burp Contest", and make "The Funeral" and "Maggie's Brain" inherit the value for "Making Faces"?  