Use if-else-combination.
if (i was young again === true) {i would change some parts of my life}
if ( ) { }
if ($w('#myInputField').value === "TEXT") {
$w('#myBOX').expand()
$w('#myBOX').show()
$w('#myTextBox').text = "Congratulation"
//do here some more actions, which ever you want.....
}
else {
$w('#myTextBox').text = "Sorry"
//do here some more actions, which ever you want.....
}
Your used elements would be…
- 1x Inputfield
- 1x Box
- 1x Textbox