Algebra parser

Has anyone ever heard of a control that can parse a series of simple
algebraic expressions, maybe with simple if-else logic too? For example:

A = 5
B = (A * 2) + 1
C = 0
if B > 10 C = B else C = A

Jim