How to Customize Math Expression Using Strings?

Is there any way to customize a math expression using a string variable which contains the intended expression? Unless of course there are better options than math expressions? The main objective here is for the users to be able to write an expression in the UI which will then be calculated. By the way the number of the parameters of the math expression is definite, 3 to be exact.

Or a brief version of this question: Can I write functions and make them work during gameplay? And this function takes no more or no less than 3 parameters. Since math expressions` expressions are essentially strings in the way I understand it, I should also be able to pass it a string variable as its expression. If this could not work for now, might I suggest that the next version of UE4 include this feature.

Thanks in advance! :slight_smile:

Although expressions look like strings in the node heading, I’m not sure that’s how they work. When you write an expression and double click the Math Expression node, you can see that it’s the same as just some collapsed nodes in a blueprint, and you can not change the nodes at runtime.

Then its a real pity. Now that the nodes cant be changed at runtime, can I actually use some other softwares specialized in symbolic operations to do the calculations for me, and output the results to UE4?

Or in fact any advice on how to achieve the effect of calculating/doing user-defined functions/instructions at runtime in UE4?

Thanks.