Check the radio button

Just like checkboxes to check the status on the radio button, we can use the following function.

ui_get_checked(control);

Return: Boolean

Argument control is the handle of ui_radio_create(...); function to be checked.

if (ui_get_checked(optionMale))
{
  show_message( "You are a man!");
}

The above line of code used to check the optionMale radio button if checked, then display the message "You are a man!".

results matching ""

    No results matching ""