If statements in Java
I'm setting a variable using an input field and a button. Once the button is pressed, I also want it to compare the input to a pre-defined value and to display a message in a label if these match (by, for example, making the label visible).
For example, a question is displayed. The user enters the answer and presses the button. The button assigns this to a variable. I need something that also says:
If variable = "James Bond" then make label visible.
How would I do this using Java in Tiggzi?
Thanks,
Matt