Else

Jmnote (토론 | 기여)님의 2014년 8월 22일 (금) 13:07 판
else

1 Bash

He="John Smith"
if [ "$He" = "John Smith" ]; then
	echo "He is John Smith"
else
	echo "He is not John Smith"
fi
# He is John Smith

2 Python

if 1==1:
	print(True)
else:
	print(False)
# True
if 1==2:
	print(True)
else:
	print(False)
# False

3 Ruby

if 43 > 42
	puts 'true'
else
	puts 'false'
end
# true

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}