Linking typed input to become the input variable

I am creating a number guessing game where I intend to compare the user input with the actual number. How do I link such that the user’s guess will become the variable?

Use Activities - Input Dialog
store user input in Result variable of type string.

Use assign activity and convert string to integer for compare using If activity.


I am using the app version. Is this the correct thing to do?