Short-Circuit Evaluation


#1

Is this correct?
I just thought, it should print
"B was also evaluated!
"true"


"true"

Please help


#2

Do you want to say true should be inside ""?

No,because true is Boolean value not string one.

but your result is totally wrong.

read the instruction again.

your result should be

A was evaluated!
B was also evaluated!
true
------
A was evaluated!
true
nil

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.