The following if statement runs in a Rich UI application:
if (myRadioGroup.selected == "Tuesday") myTextArea.text = "No, on Monday!"; else myTextArea.text = "No, on Tuesday!"; end
The code assigns a string to a text area in response to the user’s selection of one or another radio button in a radio group.