soledad

6.3.1 조건 연산자

Estimated reading: 1 minute

기본 사용법

val1 := true
val2 := (val1 == true) ? 100 : 200
msgbox, %val2%

응용 사용법

Note : 문자열에서 삼항 연산자 사용 시에는 연산자 부분만 괄호로 묶어 주어야 앞 부분의 문자열이 잘리지 않습니다.

val1 := true
val2 := Hello ((val1 == true) ?  World! :  Change World!)
msgbox, %val2%
0 0 votes
추천 평점
Subscribe
Notify of
guest
0 댓글
Inline Feedbacks
View all comments
Share this Doc
CONTENTS
Ask ChatGPT
Set ChatGPT API key
Find your Secret API key in your ChatGPT User settings and paste it here to connect ChatGPT with your Tutor LMS website.