In the above code you have made one input box and its variable name is inputVar and one dynamic text box and its variable name is dynVar. Made on buttons and on its action we used the aboce code. Now this code will check the string (means the text you write) if it is "Ali"
then in Dynamic TEXT box (dynVar) it will display "Administrator", the same if the string is
"Charly" it will display "Moderator". After comparing all else if structure, if there are no
matches then it will display "Guest" in the dynamic text box.