0 votes
func _on_LineEdit_text_changed(new_text):
    $Container/Label2.text = solve_the_eq(new_text)

func solve_the_eq(input):
    return #*solved eq*

so, let's say I typed 3+5. I want solve_the_eq() to return 7. Do I have to handle math manually, or is there a more adequate way?

thank you

Godot version 3.4.2
in Engine by (31 points)
edited by

I think "adequate" for 3+5 will be 8.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.