This sample is 'age = 50'.
When you make changes to 'age = 40', another message is displayed.(sample・source of sample)
There is a way a user inputs age, but please focus on a behavior of 'If' in this sample.