Skip to content

How to convert Dialogic.get_variable("something") to an integer or float instead of string? #1319

Discussion options

You must be logged in to vote

Not sure what the problem is. if int(Dialogic.get_variable('something')) > 23: should work.

This depends on your godot version too, I assume you use 3.5. Dialogic.get_variable() should return a normal string.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@creativecorvus3
Comment options

@creativecorvus3
Comment options

Answer selected by creativecorvus3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants