← 수업 제작 도구
홈 › Components › Multiple Choice and Checkboxes › 화면 3

화면 3. Choice.submitted [source]

원본: Computation Layer 문서(Multiple Choice and Checkboxes) · Try It (원본 화면)

화면 번호3 / 21
문서 항목 설명 (원문)Gets a Boolean value that indicates whether or not the multiple choice component has been submitted.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 3 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1레이블 없는 메모메모
# This adds a "thank you" message to the end of the note after
# the "submit" button has been pressed.
# Note: the \n\n creates a double carriage return and we surround
# our message with double quotation marks to indicate a string.
▷ "제출(submit)" 버튼을 누른 뒤 메모 끝에 "감사합니다" 메시지를 덧붙인다.
참고: \n\n은 줄바꿈을 두 번 하는 것이고, 메시지를 큰따옴표로 감싸 글자(문자열)임을 나타낸다.

thankYou = when choice.submitted "\n\nThank you for your response" otherwise ""
▶ 변수 thankYou는 choice가 제출되었다면(choice.submitted) "\n\nThank you for your response"(응답해 주어 고맙다), 제출되지 않았다면 빈 글자로 한다.
submitted는 객관식 구성요소가 제출되었는지(참/거짓)를 알려 주고, when은 조건을 차례로 확인해 처음 맞는 값을 쓴다.
content: "How many pets do you have? ${thankYou}" ▶ 메모의 내용(content)은 "How many pets do you have? ${thankYou}"(반려동물이 몇 마리 있는가? 뒤에 thankYou의 값이 이어진다)로 한다.
${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다. 제출하기 전에는 질문만, 제출한 뒤에는 질문 뒤에 감사 문장이 이어서 나타난다. content는 메모에 직접 적은 글을 덮어쓴다.