問題文
A message shows a fallback greeting when the first name is missing and the stored name when it is present. Which approach expresses that inline?
選択肢
- Use the conditional function and nest the emptiness test inside it, so one inline section decides between the two strings.
- Use the conditional statement and place the emptiness test after it, so one inline section evaluates each of the two branches.
- Use the output function and pass the emptiness test to it, so one inline section prints the branch selected.
- Use the loop keyword and put the emptiness test in its condition, so one inline section repeats until the value is found.